Skip to content

Commit

Permalink
fix: do not use deprecated GitHub Actions set-output syntax (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
stigok authored Oct 17, 2022
1 parent 3301686 commit 099aec8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
name: Generate unique ID
id: gen-unique-id
run: |
echo "::set-output name=unique-id::$(date +%Y-%m-%d)-${{ github.sha }}-$(openssl rand -hex 20)"
echo "unique-id=$(date +%Y-%m-%d)-${{ github.sha }}-$(openssl rand -hex 20)" >> $GITHUB_OUTPUT
-
name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -167,7 +167,8 @@ jobs:
# severity levels to care about.
exit_code = 2
print(f"::set-output name=exit-code::{exit_code}")
with open(os.getenv("GITHUB_OUTPUT"), 'a') as f:
print(f"exit-code={exit_code}", file=f)
print("Raw results:")
json.dump(data, sys.stdout)
sys.exit(exit_code)
Expand Down Expand Up @@ -239,8 +240,8 @@ jobs:
done
echo >> $GITHUB_STEP_SUMMARY
echo "::set-output name=image-tags-stripped::$(echo "$tags_stripped" | sed 's|,*$||')"
echo "::set-output name=image-digest::${digest}"
echo "image-tags-stripped=$(echo "$tags_stripped" | sed 's|,*$||')" >> $GITHUB_OUTPUT
echo "image-digest=${digest}" >> $GITHUB_OUTPUT
echo "### Digest" >> $GITHUB_STEP_SUMMARY
echo "- \`$digest\`" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit 099aec8

Please sign in to comment.