diff --git a/.github/workflows/playwright-onDemand.yml b/.github/workflows/playwright-onDemand.yml index 52508d7e..e9301c9c 100644 --- a/.github/workflows/playwright-onDemand.yml +++ b/.github/workflows/playwright-onDemand.yml @@ -46,7 +46,8 @@ jobs: uses: actions/upload-artifact@v2 env: TAG_NAME: test-report-${{ steps.date.outputs.date }} - if: always() + if: ${{ always() }} + with: name: onDemand path: pw-report/ @@ -61,7 +62,8 @@ jobs: uses: actions/download-artifact@v3 id: download - name: Publish to external repo - if: always() + # Only upload if we're running from the staticwebdev repo + if: ${{ env.PAT_TOKEN != 0 }} uses: peaceiris/actions-gh-pages@v3.7.3 with: external_repository: mspnp/intern-js-pipeline @@ -75,7 +77,8 @@ jobs: notify-dashboard: name: Notify Dashboard - if: ${{ always() }} + # Only upload if we're running from the staticwebdev repo + if: ${{ env.PAT_TOKEN != 0 }} needs: [test, storeReports] # The type of runner that the job will run on runs-on: ubuntu-latest