Skip to content

Commit

Permalink
fallback and commit url
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelrios committed May 9, 2024
1 parent e229af9 commit ba8f015
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/staging-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
env:
PULL_REQUEST_JOB_STATUS: ${{ job.status }}
PULL_REQUEST_JOB_STATUS_COLOR: ${{ job.status == 'success' && vars.COLOR_GREEN || job.status == 'failure' && vars.COLOR_RED || vars.COLOR_ORANGE }}
PULL_REQUEST_COMMIT_URL: ${{ github.event.pull_request.head.repo.html_url }}/commit/${{ github.event.pull_request.head.sha }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

Expand All @@ -71,12 +72,13 @@ jobs:
"attachments": [
{
"color": "${{ env.PULL_REQUEST_JOB_STATUS_COLOR }}",
"fallback": "test",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":looker: Looker Github Action :github: - Weekly Update ${{ env.PULL_REQUEST_JOB_STATUS }}",
"text": ":looker: Looker Github Action :github: - Weekly Update",
"emoji": true
}
},
Expand All @@ -87,7 +89,7 @@ jobs:
"type": "section",
"text": {
"type": "plain_text",
"text": "Status: ${{ env.PULL_REQUEST_JOB_STATUS }}\n Commit: ${{ env.PULL_REQUEST_URL }}",
"text": "Status: ${{ env.PULL_REQUEST_JOB_STATUS }}\n Commit: ${{ env.PULL_REQUEST_COMMIT_URL }}",
"emoji": true
}
},
Expand Down

0 comments on commit ba8f015

Please sign in to comment.