8000 Only push to dashboard if we have credentials (#22) · staticwebdev/vanilla-basic@a968abf · GitHub
[go: up one dir, main page]

Skip to content

Commit a968abf

Browse files
authored
Only push to dashboard if we have credentials (#22)
1 parent 27cefb2 commit a968abf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/playwright-onDemand.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
uses: actions/upload-artifact@v2
4747
env:
4848
TAG_NAME: test-report-${{ steps.date.outputs.date }}
49-
if: always()
49+
if: ${{ always() }}
50+
5051
with:
5152
name: onDemand
5253
path: pw-report/
@@ -61,7 +62,8 @@ jobs:
6162
uses: actions/download-artifact@v3
6263
id: download
6364
- name: Publish to external repo
64-
if: always()
65+
# Only upload if we're running from the staticwebdev repo
66+
if: ${{ env.PAT_TOKEN != 0 }}
6567
uses: peaceiris/actions-gh-pages@v3.7.3
6668
with:
6769
external_repository: mspnp/intern-js-pipeline
@@ -75,7 +77,8 @@ jobs:
7577

7678
notify-dashboard:
7779
name: Notify Dashboard
78-
if: ${{ always() }}
80+
# Only upload if we're running from the staticwebdev repo
81+
if: ${{ env.PAT_TOKEN != 0 }}
7982
needs: [test, storeReports]
8083
# The type of runner that the job will run on
8184
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
0