Skip to content

Commit

Permalink
Fix CI requiring original repo (#560)
Browse files Browse the repository at this point in the history
## βœ… Changes

<!-- Use prefixes: **chore**, **docs**, **feat**, **fix**, **refactor**,
**style** or **test** -->

- **fix**: This should fix the CI failing on forks.

## πŸŒ„ Context

I had noticed when fixing the issue of the cap on Numeric fields that
the CI consistently failed. Looking from the build logs, I think the
issue is that it looks for secrets related to the main repo in a way
that seems hardcoded. This _should_ fix that particular issue.
  • Loading branch information
glmdgrielson authored Nov 25, 2024
1 parent 9dc2d3c commit 1bf00a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
path: dist
# Deploy Preview
- name: Deploy Preview
if: github.ref != 'refs/heads/master' && github.event.repository.fork == false
if: github.ref != 'refs/heads/master' && !github.event.pull_request.head.repo.fork
run: npm run deploy:preview -- --auth ${{secrets.NETLIFY_AUTH_TOKEN}} --alias $GITHUB_RUN_ID
# Deploy Production
- name: Deploy Production
if: github.ref == 'refs/heads/master' && github.event.repository.fork == false
if: github.ref == 'refs/heads/master' && !github.event.pull_request.head.repo.fork
run: npm run deploy:prod -- --auth ${{secrets.NETLIFY_AUTH_TOKEN}}

0 comments on commit 1bf00a0

Please sign in to comment.