Skip to content

Commit

Permalink
Merge pull request #259 from ixartz/sentry-secret-ci
Browse files Browse the repository at this point in the history
ci: only set SENTRY_AUTH_TOKEN if the secrets exits to avoid build error
  • Loading branch information
ixartz committed Mar 8, 2024
2 parents 5626b4a + 91ccfe0 commit 93ea223
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/CI.yml
Expand Up @@ -45,10 +45,14 @@ jobs:
cache: "npm"
- run: npm ci

- name: Set SENTRY_AUTH_TOKEN env if secret exists
run: |
if [[ -n "${{ secrets.SENTRY_AUTH_TOKEN }}" ]]; then
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> $GITHUB_ENV
fi
- name: Build Next.js for E2E tests
run: npm run build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

- if: github.event_name == 'pull_request'
name: Validate all commits from PR
Expand Down

0 comments on commit 93ea223

Please sign in to comment.