Skip to content

Commit

Permalink
Add codecov_token as input element of the workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsorr committed Apr 23, 2024
1 parent 9330682 commit 3e42131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/build_and_coverage/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: "Build & coverage"
description: "Check the code, build, testing & generate project coverage"

inputs:
CODECOV_TOKEN:
description: "The token to upload to codecov"
required: true

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -69,7 +74,7 @@ runs:
fail_ci_if_error: true
verbose: false
flags: 'spark-${{ env.SPARK_VERSION }}.x'
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ inputs.CODECOV_TOKEN }}

# CLEAN PROJECT BEFORE CACHE
- name: Cleaning before cache 🚯
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/wc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ jobs:
env:
SPARK_VERSION: ${{ matrix.spark }}
SCOPE: ${{ matrix.scope }}
with:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 3e42131

Please sign in to comment.