Skip to content

Commit

Permalink
Merge pull request #161 from masutaka/fix-pushover-job
Browse files Browse the repository at this point in the history
Fix GitHub Actions workflows
  • Loading branch information
masutaka authored Jun 19, 2024
2 parents 0a2aeed + eef65bd commit 95c1ed1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pushover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Pushover

on:
workflow_call:
secrets:
PUSHOVER_API_KEY:
required: true
PUSHOVER_USER_KEY:
required: true

jobs:
pushover:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- Test
types:
- completed
branches:
- main

concurrency:
group: ${{ github.workflow }}
Expand Down Expand Up @@ -60,3 +62,6 @@ jobs:
if: failure()
needs: [release]
uses: ./.github/workflows/pushover.yml
secrets:
PUSHOVER_API_KEY: ${{ secrets.PUSHOVER_API_KEY }}
PUSHOVER_USER_KEY: ${{ secrets.PUSHOVER_USER_KEY }}
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ jobs:
if: github.ref_name == github.event.repository.default_branch && failure()
needs: [actionlint, test]
uses: ./.github/workflows/pushover.yml
secrets:
PUSHOVER_API_KEY: ${{ secrets.PUSHOVER_API_KEY }}
PUSHOVER_USER_KEY: ${{ secrets.PUSHOVER_USER_KEY }}

0 comments on commit 95c1ed1

Please sign in to comment.