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

id: check-dh-login id: check-dh-login
run: | run: |
if [[ -n "${{secrets.DOCKERHUB_GB_TOKEN}}" && -n "${{secrets.DOCKERHUB_GB_USER}}" ]] ; then 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 else
echo "No Docker Hub login data found. Skipping Docker." echo "No Docker Hub login data found. Skipping Docker."
fi fi
gbver=${gbver##*gitblit-} gbver=${gbver##*gitblit-}
echo "Version detected: $gbver" echo "Version detected: $gbver"
echo "GITBLIT_VERSION=$gbver" >> "${GITHUB_ENV}" 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 - name: Generate Dockerfile for snapshot image
working-directory: ../gitblit-docker working-directory: ../gitblit-docker

Loading…
Cancel
Save