forked from defenseunicorns/pepr
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 936 Bytes
/
flow-rel.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
33
# refs:
# - https://shipit.dev/posts/trigger-github-actions-on-pr-close.html
# - https://github.com/orgs/community/discussions/26724
# - https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#running-your-pull_request-workflow-when-a-pull-request-merges
# - https://github.com/orgs/community/discussions/27058
name: Flow - Release Testing
permissions: read-all
on:
workflow_dispatch:
# pull_request:
# branches: [next]
# types: [closed]
jobs:
rc:
permissions:
contents: write
if: >
${{
github.event_name == 'workflow_dispatch' ||
github.event.pull_request.merged == true
}}
uses: ./.github/workflows/sub-rc.yml
soak:
needs: [rc]
if: ${{ needs.rc.outputs.RELEASE_NEEDED == 'true' }}
uses: ./.github/workflows/sub-soak.yml
official:
needs: [soak]
uses: ./.github/workflows/sub-official.yml