test_alert_current_wait #262
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
name: test_alert_current_wait | |
on: | |
workflow_run: | |
workflows: ['mock-workflow'] | |
types: | |
- completed | |
jobs: | |
alert_current_pr: | |
env: # Or as an environment variable | |
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
runs-on: ubuntu-latest | |
name: Alert Current in Queue after wait | |
steps: | |
# To use this repository's private action, | |
# you must check out the repository | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Alert queue after wait | |
uses: ./ # Uses an action in the root directory | |
id: alert | |
with: | |
mode: 'ALERT' | |
channel: 'merge-queue' | |
alert_message: '`${{ github.event.workflow.name }}` is complete with status `${{ github.event.workflow_run.conclusion }}`!' | |
# Use the output from the `alert` step | |
- name: Get the output status | |
run: echo "status => ${{ steps.alert.outputs.status }}" |