Bump Action to node20 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [Usage] | |
# Invoke evryfs/notify-slack-action to test the final result of its features. | |
name: Test Bot features | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
CHANNEL_ID: C04DXC2LB35 | |
jobs: | |
notify-slack-blocks-templates: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify Slack with templates | |
uses: evryfs/notify-slack-action@master | |
env: | |
TEXT_MESSAGE: "Tests on features are successful :rocket:" | |
ACTION_STATUS: ":thumbsup:" | |
VERSION_TAG: ${{ github.sha }} | |
with: | |
channel-id: ${{ env.CHANNEL_ID }} | |
mechanism: templates | |
value: gh_dashboard_simple.json | |
notify-slack-blocks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify Slack with blocks | |
uses: evryfs/notify-slack-action@master | |
with: | |
channel-id: ${{ env.CHANNEL_ID }} | |
mechanism: blocks | |
value: | | |
[ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "*#${{ github.run_id }} Anything humans can do in space, robots can do better.*" | |
} | |
}, | |
{ | |
"type": "actions", | |
"elements": [ | |
{ | |
"type": "button", | |
"text": { | |
"type": "plain_text", | |
"emoji": true, | |
"text": "Approve" | |
}, | |
"style": "primary", | |
"value": "yes" | |
}, | |
{ | |
"type": "button", | |
"text": { | |
"type": "plain_text", | |
"emoji": true, | |
"text": "Deny" | |
}, | |
"style": "danger", | |
"value": "no" | |
} | |
] | |
} | |
] | |
notify-slack-text: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify Slack with text | |
uses: evryfs/notify-slack-action@master | |
with: | |
channel-id: ${{ env.CHANNEL_ID }} | |
mechanism: text | |
value: "Hello GHA from commit ${{ github.sha }}" |