mirror of
https://github.com/azure/login.git
synced 2026-03-12 18:07:08 -04:00
Update workflow with new syntax for set-output (#334)
* Update workflow with new syntax for set-output * Remove-parameter-for-escape-sequences
This commit is contained in:
2
.github/workflows/azure-login-canary.yml
vendored
2
.github/workflows/azure-login-canary.yml
vendored
@@ -87,7 +87,7 @@ jobs:
|
||||
RUN_URL="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
|
||||
REPORT="${REPORT}\r\n"
|
||||
if [ ${{needs.az-login-test.result}} == 'success' ]; then REPORT="${REPORT}\r\n|✅|<${RUN_URL}|az-login-test>"; else REPORT="${REPORT}\r\n|❌|<${RUN_URL}|az-login-test>"; fi
|
||||
echo "::set-output name=report::$REPORT"
|
||||
echo "report=$REPORT" >> $GITHUB_OUTPUT
|
||||
- name: Post to slack
|
||||
shell: bash
|
||||
run: curl -X POST -H 'Content-type:application/json' --data '{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"${{steps.slack_report.outputs.report}}"}}]}' https://hooks.slack.com/services/${{SECRETS.SLACK_CHANNEL_SECRET}}
|
||||
|
||||
@@ -122,7 +122,7 @@ jobs:
|
||||
REPORT="${REPORT}\r\n"
|
||||
if [ ${{needs.az-login-test-non-oidc.result}} == 'success' ]; then REPORT="${REPORT}\r\n|✅|<${RUN_URL}|az-login-test-non-oidc>"; else REPORT="${REPORT}\r\n|❌|<${RUN_URL}|az-login-test-non-oidc>"; fi
|
||||
if [ ${{needs.az-login-test-oidc.result}} == 'success' ]; then REPORT="${REPORT}\r\n|✅|<${RUN_URL}|az-login-test-oidc>"; else REPORT="${REPORT}\r\n|❌|<${RUN_URL}|az-login-test-oidc>"; fi
|
||||
echo "::set-output name=report::$REPORT"
|
||||
echo "report=$REPORT" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Post to slack
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user