Skip to content

workflow-run

workflow-run #315

Workflow file for this run

name: "workflow-run"
on:
workflow_run:
workflows: ["build-test"]
# branches: [master]
# types:
# - completed
# - requested
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
status: ${{ github.event.workflow_run.conclusion }}
channel: '#actions'
config: .github/slack-workflow.yml
if: always()
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
status: ${{ github.event.workflow_run.conclusion }}
channel: '#actions'
config: .github/slack-workflow.yml
if: always()