-
Notifications
You must be signed in to change notification settings - Fork 338
32 lines (30 loc) · 1.07 KB
/
release_triggers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}"}'