mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-05 23:15:40 -06:00
fix(ci): skip Coveralls upload when token unavailable
The coverage workflow was failing on Dependabot PRs because COVERALLS_REPO_TOKEN is not available to PRs from forks for security reasons. Add a conditional check to skip the upload step when the token is missing, while still running coverage generation. This allows PRs to pass CI while retaining coverage reports on master.
This commit is contained in:
1
.github/workflows/coverage.yaml
vendored
1
.github/workflows/coverage.yaml
vendored
@@ -57,6 +57,7 @@ jobs:
|
||||
working-directory: pacman
|
||||
|
||||
- name: Coveralls upload
|
||||
if: ${{ secrets.COVERALLS_REPO_TOKEN != '' }}
|
||||
uses: coverallsapp/github-action@v2
|
||||
with:
|
||||
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user