Skip to content

Workflow that triggers after-release actions #211

Workflow that triggers after-release actions

Workflow that triggers after-release actions #211

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 }}"}'