File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 88jobs :
99 build-and-test :
1010 runs-on : ubuntu-latest
11+
12+ env :
13+ CHROMATIC_PROJECT_TOKEN : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
14+ FOSSA_API_KEY : ${{ secrets.FOSSA_API_KEY }}
15+
1116 steps :
1217 - uses : actions/checkout@v2
13- with :
14- fetch-depth : 0
1518
16191720
@@ -25,12 +28,13 @@ jobs:
2528 run : npm run build
2629
2730 - name : Publish to Chromatic
28- if : github.event_name != 'pull_request '
31+ if : env.CHROMATIC_PROJECT_TOKEN != ''
2932 uses : chromaui/action@v1
3033 with :
31- projectToken : ${{ secrets .CHROMATIC_PROJECT_TOKEN }}
34+ projectToken : ${{ env .CHROMATIC_PROJECT_TOKEN }}
3235
3336 - name : Run Fossa and upload data
37+ if : env.FOSSA_API_KEY != ''
3438 uses : fossa-contrib/fossa-action@v1
3539 with :
36- fossa-api-key : ${{ secrets .FOSSA_API_KEY }}
40+ fossa-api-key : ${{ env .FOSSA_API_KEY }}
You can’t perform that action at this time.
0 commit comments