Browse Source

ci: Replace set-output command with echo to GITHUB_OUTPUT

The `set-output` command was deprecated. The new way to set an output
parameter for a step is to echo to the file stored in `$GITHUB_OUTPUT`
pull/1430/head
Florian Zschocke 1 year ago
parent
commit
c950ce3d9b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      .github/workflows/nightly-build.yml

+ 2
- 2
.github/workflows/nightly-build.yml View File

@@ -111,7 +111,7 @@ jobs:
id: check-dh-login
run: |
if [[ -n "${{secrets.DOCKERHUB_GB_TOKEN}}" && -n "${{secrets.DOCKERHUB_GB_USER}}" ]] ; then
echo "::set-output name=secrets_present::true"
echo "secrets_present=true" >> $GITHUB_OUTPUT
else
echo "No Docker Hub login data found. Skipping Docker."
fi
@@ -163,7 +163,7 @@ jobs:
gbver=${gbver##*gitblit-}
echo "Version detected: $gbver"
echo "GITBLIT_VERSION=$gbver" >> "${GITHUB_ENV}"
echo "::set-output name=gb-version::$gbver"
echo "gb-version=$gbver" >> $GITHUB_OUTPUT

- name: Generate Dockerfile for snapshot image
working-directory: ../gitblit-docker

Loading…
Cancel
Save