From cc8c460c04804422405c9d971b713cc9accebdcf Mon Sep 17 00:00:00 2001 From: Sven Assmann Date: Mon, 18 Apr 2022 18:29:53 +0200 Subject: [PATCH] fix(ci): fix forwarding `CODECOV_TOKEN` to the called workflow --- .github/workflows/build.yml | 10 ++++------ .github/workflows/release.yml | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d2b876f..3f3e518 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,3 @@ -## references: -# cache: https://github.com/actions/cache/blob/main/examples.md#rust---cargo -# audit: https://github.com/actions-rs/audit-check -# "needs": https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds - name: Build on: push: @@ -16,6 +11,9 @@ on: - "**/docs/**" - "**.md" workflow_call: + secrets: + CODECOV_TOKEN: + required: true jobs: check: @@ -88,7 +86,7 @@ jobs: strategy: fail-fast: false matrix: - version: [ 'ubuntu-latest'] + version: ['ubuntu-latest'] runs-on: ${{ matrix.version }} steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 734fcba..eacf08f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,11 @@ on: - "**/docs/**" - "**.md" -# NOTE: needs to stay in sync with ./build.yml jobs: - # call out to build.yml doing-a-build: uses: steganogram/stegano-rs/.github/workflows/build.yml@main + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} publish: name: post / cargo publish