Skip to content

Commit

Permalink
chore: add notification step to release
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 4, 2020
1 parent 7137f1b commit 5c0f6c0
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release_gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- release-triggered

jobs:
build:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -18,3 +18,23 @@ jobs:
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_API_KEY }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
INCREMENT: "${{ github.event.client_payload.increment }}"

notify-gem-released:
needs: release
strategy:
matrix:
repository: [pact-foundation/pact-ruby-cli, pact-foundation/pact-ruby-standalone]
runs-on: ubuntu-latest
steps:
- name: Notify ${{ matrix.repository }} of gem release
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GHTOKENFORPACTCLIRELEASE }}
repository: ${{ matrix.repository }}
event-type: gem-released
client-payload: |
{
"name": "${{ needs.release.outputs.gem_name }}",
"version": "${{ needs.release.outputs.version }}",
"increment": "${{ needs.release.outputs.increment }}"
}

0 comments on commit 5c0f6c0

Please sign in to comment.