Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response to workflow_run event #47

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

swfz
Copy link
Contributor

@swfz swfz commented Oct 19, 2022

Added option to retrieve the status of the last workflow job when using workflow_run event for notification.

If you have more than one workflow file, you will need to write the Slack notification settings in the workflow configuration file each time.

We have prepared workflow files to be notified using the workflow_run event, and made it possible to specify the target workflows to be notified.

This method of notification using workflow_run is also useful in cases where dependabot notification fails

Configuration example

on:
  workflow_run:
    workflows:
      - lint
      - test
    types:
      - completed
jobs:
  main:
    name: main
    runs-on: ubuntu-20.04
    steps:
      - uses: swfz/slack-workflow-status@feature/follow-workflow-run
        with:
          workflow_run: true
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}

@swfz swfz force-pushed the feature/follow-workflow-run-trigger branch from 8b0f2ea to b6610e7 Compare January 28, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant