Skip to content

Commit

Permalink
replace deprecated ::set-output command with $GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
lukseven committed Nov 6, 2023
1 parent 66c9a34 commit 8b0cfa6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
env:
FULL_REVISION: ${{ github.event.after }}
run: |
echo "::set-output name=rev::${FULL_REVISION:0:8}"
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
echo "::set-output name=os::$(uname -sr)"
echo "::set-output name=go_version::$(go version | cut -d " " -f 3-)"
echo "rev=${FULL_REVISION:0:8}" > $GITHUB_OUTPUT
echo "branch=${GITHUB_REF#refs/heads/}" > $GITHUB_OUTPUT
echo "os=$(uname -sr)" > $GITHUB_OUTPUT
echo "go_version=$(go version | cut -d " " -f 3-)" > $GITHUB_OUTPUT
if [[ "${{ job.status }}" == "success" ]]; then
echo "::set-output name=status:::moneybag: SUCCESS"
echo "status=:moneybag: SUCCESS" > $GITHUB_OUTPUT
else
echo "::set-output name=status:::hankey: FAILURE"
echo "status=:hankey: FAILURE" > $GITHUB_OUTPUT
fi
- name: Post to Slack
Expand Down

0 comments on commit 8b0cfa6

Please sign in to comment.