-
Notifications
You must be signed in to change notification settings - Fork 140
32 lines (27 loc) · 1.08 KB
/
release.yml
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: Trigger release
on:
workflow_run:
workflows: [Docker]
types: [completed]
branches: [master]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'flathub-infra/flatpak-builder-lint' && github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[release]') }}
steps:
- name: Delay for 2 minutes
run: sleep 120
- name: Trigger workflow in org.flatpak.Builder repository
uses: peter-evans/repository-dispatch@v3
with:
repository: flathub/org.flatpak.Builder
event-type: trigger-workflow
client-payload: '{"sha": "${{ github.sha }}"}'
token: ${{ secrets.LINTER_TRIGGER_WORKFLOW_TOKEN }}
- name: Trigger workflow in flathub-infra/flatpak-github-actions
uses: peter-evans/repository-dispatch@v3
with:
repository: flathub-infra/flatpak-github-actions
event-type: trigger-workflow
token: ${{ secrets.LINTER_TRIGGER_WORKFLOW_TOKEN }}