Skip to content

Commit 81479f5

Browse files
committed
trying to make this trigger on completion of other actions
1 parent 65ba1b1 commit 81479f5

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

.github/workflows/test-upload-local.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Test Local Upload
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
75
branches: [ master ]
86
workflow_run:
@@ -14,11 +12,7 @@ on:
1412
jobs:
1513
Test-Local-Uploads:
1614
runs-on: ubuntu-latest
17-
if: |
18-
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
19-
(github.event_name == 'workflow_dispatch') ||
20-
(github.event_name == 'push' && github.event.workflow_run.conclusion == 'success') ||
21-
(github.event_name == 'pull_request' && github.event.workflow_run.conclusion == 'success')
15+
if: ${{ github.event_name == 'pull_request' || github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
2216

2317
env:
2418
COMPOSE_FILE: ./docker-compose.yml

.github/workflows/test-upload-nginx.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Test Nginx Upload
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
75
branches: [ master ]
86
workflow_run:
@@ -14,11 +12,7 @@ on:
1412
jobs:
1513
Test-Nginx-Uploads:
1614
runs-on: ubuntu-latest
17-
if: |
18-
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
19-
(github.event_name == 'workflow_dispatch') ||
20-
(github.event_name == 'push' && github.event.workflow_run.conclusion == 'success') ||
21-
(github.event_name == 'pull_request' && github.event.workflow_run.conclusion == 'success')
15+
if: ${{ github.event_name == 'pull_request' || github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
2216

2317
env:
2418
COMPOSE_FILE: ./docker-compose-nginx.yml

0 commit comments

Comments
 (0)