File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 10
10
name : Build Firestore
11
11
12
12
runs-on : ubuntu-latest
13
+ outputs :
14
+ changed : ${{ steps.set-output.outputs.CHANGED }}
13
15
14
16
steps :
15
17
- name : Checkout Repo
@@ -32,11 +34,17 @@ jobs:
32
34
cp config/ci.config.json config/project.json
33
35
yarn
34
36
- name : build
35
- run : yarn build:changed firestore
37
+ id : build
38
+ run : yarn build:changed firestore | egrep "Skipping all"
39
+ # Only continue when "Skipping all is not found"
40
+ continue-on-error : true
41
+ - name : set output
42
+ id : set-output
43
+ run : echo "CHANGED=true" >> "$GITHUB_OUTPUT";
36
44
- name : Archive build
37
45
if : ${{ !cancelled() }}
38
46
run : |
39
- tar -cf build.tar --exclude="\.git" --exclude="node_modules" .
47
+ tar -cf build.tar --exclude="\.git" .
40
48
gzip build.tar
41
49
- name : Upload build archive
42
50
if : ${{ !cancelled() }}
52
60
runs-on : ubuntu-latest
53
61
54
62
needs : build
63
+ if : ${{ needs.build.outputs.changed == 'true'}}
55
64
steps :
56
65
- name : Set up Node (14)
57
66
uses : actions/setup-node@v3
84
93
runs-on : ubuntu-latest
85
94
86
95
needs : build
96
+ if : ${{ needs.build.outputs.changed == 'true'}}
87
97
steps :
88
98
- name : Set up Node (14)
89
99
uses : actions/setup-node@v3
@@ -119,6 +129,7 @@ jobs:
119
129
runs-on : ubuntu-20.04
120
130
121
131
needs : build
132
+ if : ${{ needs.build.outputs.changed == 'true'}}
122
133
steps :
123
134
- name : install Firefox stable
124
135
run : |
You can’t perform that action at this time.
0 commit comments