Skip to content

Commit

Permalink
Fix build from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuthan committed Nov 25, 2022
1 parent 816a933 commit e060c20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
deploy:
runs-on: ubuntu-latest

# disable for branches from forks
# disable for PRs from forks
if: ${{ !github.event.pull_request.head.repo.fork }}

env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # allow comments on PR from forks
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: build:client
skip_step: install

Expand All @@ -35,8 +35,8 @@ jobs:
uploadArtifacts: true
temporaryPublicStorage: true
- uses: actions/github-script@v6
continue-on-error: true # can't comment for PRs from forks
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # allow comments on PR from forks
script: |
const lighthouse_links = ${{ steps.lighthouse.outputs.links }}
const lighthouse_link = Object.values(lighthouse_links)[0]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/undeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
undeploy:
runs-on: ubuntu-latest

# disable for branches from forks
# disable for PRs from forks
if: ${{ !github.event.pull_request.head.repo.fork }}

env:
Expand Down

0 comments on commit e060c20

Please sign in to comment.