Skip to content

chore: update codecov/codecov-action to v4 #6755

chore: update codecov/codecov-action to v4

chore: update codecov/codecov-action to v4 #6755

Workflow file for this run

name: Build
on: [push, pull_request]
env:
COVERAGE_REPORT_PATH: "target/site/jacoco/jacoco.xml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: Upload coverage to codecov (tokenless)
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
uses: codecov/codecov-action@v4
with:
files: "${{ env.COVERAGE_REPORT_PATH }}"
fail_ci_if_error: true
- name: Upload coverage to codecov (with token)
if: >

Check failure on line 28 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 28, Col: 13): Unexpected symbol: '"'. Located at position 46 within expression: github.repository == 'TheAlgorithms/Java' && "! github.event.pull_request.head.repo.fork "
github.repository == 'TheAlgorithms/Java' &&
"! github.event.pull_request.head.repo.fork "
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: "${{ env.COVERAGE_REPORT_PATH }}"
fail_ci_if_error: true