Skip to content

Commit

Permalink
fix(ci): fix forwarding CODECOV_TOKEN to the called workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sassman committed Apr 18, 2022
1 parent 1c587f6 commit cc8c460
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -16,6 +11,9 @@ on:
- "**/docs/**"
- "**.md"
workflow_call:
secrets:
CODECOV_TOKEN:
required: true

jobs:
check:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc8c460

Please sign in to comment.