Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not use deprecated GitHub Actions set-output syntax #3

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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