Skip to content

Commit

Permalink
Fix GHA set-output deprecation warnings
Browse files Browse the repository at this point in the history
Ported from DependencyTrack/dependency-track#2817

Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Oct 19, 2023
1 parent f06b808 commit 8437c3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_meta-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
if [[ "${{ inputs.app-version }}" != "snapshot" ]]; then
TAGS="${TAGS},ghcr.io/dependencytrack/hyades-apiserver:latest"
fi
echo "::set-output name=tags::${TAGS}"
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Build multi-arch Container Image
uses: docker/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: parse
run: |-
VERSION=`yq -p=xml '.project.version' pom.xml`
echo "::set-output name=version::${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
call-build:
needs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
fi
NEXT_VERSION="${VERSION%.*}.$((${VERSION##*.} + 1))-SNAPSHOT"
echo "::set-output name=version::${VERSION}"
echo "::set-output name=next-version::${NEXT_VERSION}"
echo "::set-output name=release-branch::${VERSION%.*}.x"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "next-version=${NEXT_VERSION}" >> $GITHUB_OUTPUT
echo "release-branch=${VERSION%.*}.x" >> $GITHUB_OUTPUT
create-release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8437c3f

Please sign in to comment.