-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (34 loc) · 1.23 KB
/
pullrequest-trusted.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
34
35
36
37
38
39
40
name: Pull Request Update
concurrency:
group: pullrequest-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request_target:
types: [opened, synchronize, reopened, labeled, ready_for_review]
branches: [ 'main' ]
jobs:
test:
uses: ./.github/workflows/test.yml
# This lets people add an "appimage" tag to have appimages built for the PR
appimage:
needs: [test]
if: |
always() && !cancelled() &&
!contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests') &&
contains(github.event.pull_request.labels.*.name, 'appimage') && needs.test.result == 'success'
uses: ./.github/workflows/appimage.yml
with:
release_type: 'pr'
secrets:
GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
appimage-ignore-tests:
if: |
always() && !cancelled() &&
contains(github.event.pull_request.labels.*.name, 'appimage-ignore-tests')
uses: ./.github/workflows/appimage.yml
with:
release_type: 'pr'
secrets:
GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}