Workflow that triggers after-release actions #211
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: Workflow that triggers after-release actions | |
on: | |
workflow_run: | |
workflows: ["Release"] | |
types: | |
- completed | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Get the released tags version | |
id: get-version | |
run: | | |
REF="${{ github.event.workflow_run.head_branch }}" | |
echo ::set-output name=VERSION::${REF/refs\/tags\//} | |
- name: Trigger Bee Factory image build | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.GHA_PAT_BASIC }} | |
repository: ethersphere/bee-factory | |
event-type: build-images | |
client-payload: '{"tag": "${{ steps.get-version.outputs.VERSION }}"}' | |
- name: Trigger repo publishing | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.GHA_PAT_BASIC }} | |
repository: ethersphere/repos | |
event-type: publish-repos | |
client-payload: '{"package": "bee", "tag": "${{ steps.get-version.outputs.VERSION }}"}' |