File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Test Database
2
2
on :
3
- push :
4
- branches :
5
- - develop
6
- pull_request :
3
+ # Trigger this workflow when the "Nix CI" workflow completes
4
+ workflow_run :
5
+ workflows : ["Nix CI"]
6
+ types :
7
+ - completed
7
8
workflow_dispatch :
8
9
9
10
permissions :
@@ -12,6 +13,7 @@ permissions:
12
13
13
14
jobs :
14
15
prepare :
16
+ if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
15
17
runs-on : large-linux-x86
16
18
outputs :
17
19
postgres_versions : ${{ steps.set-versions.outputs.postgres_versions }}
29
31
VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c "split(\"\n\")[:-1]")
30
32
echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
31
33
build :
34
+ if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
32
35
needs : prepare
33
36
strategy :
34
37
matrix :
Original file line number Diff line number Diff line change 1
1
name : Testinfra Integration Tests Nix
2
2
3
3
on :
4
- pull_request :
4
+ # Trigger this workflow when the "Nix CI" workflow completes
5
+ workflow_run :
6
+ workflows : ["Nix CI"]
7
+ types :
8
+ - completed
5
9
workflow_dispatch :
6
10
7
11
permissions :
@@ -10,6 +14,7 @@ permissions:
10
14
11
15
jobs :
12
16
prepare :
17
+ if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
13
18
runs-on : large-linux-x86
14
19
outputs :
15
20
postgres_versions : ${{ steps.set-versions.outputs.postgres_versions }}
26
31
echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
27
32
28
33
test-ami-nix :
34
+ if : ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
29
35
needs : prepare
30
36
strategy :
31
37
fail-fast : false
You can’t perform that action at this time.
0 commit comments