Skip to content

Commit

Permalink
dev: improve check secret syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Sep 11, 2023
1 parent da476a7 commit e1274e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ jobs:
steps:
- id: check
name: Check
env:
DOCKER_HUB_ACCESS_TOKEN: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}"
if: "${{ env.DOCKER_HUB_ACCESS_TOKEN != '' }}"
with:
secret: "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}"
if: with.secret != ''
run: echo "continue=true" >> $GITHUB_OUTPUT

publish:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
steps:
- id: check
name: Check
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
if: "${{ env.CODECOV_TOKEN != '' }}"
with:
secret: "${{ secrets.CODECOV_TOKEN }}"
if: with.secret != ''
run: echo "continue=true" >> $GITHUB_OUTPUT

report:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
steps:
- id: check
name: Check
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}"
if: "${{ env.CARGO_REGISTRY_TOKEN != '' }}"
with:
secret: "${{ secrets.CARGO_REGISTRY_TOKEN }}"
if: with.secret != ''
run: echo "continue=true" >> $GITHUB_OUTPUT

test:
Expand Down

0 comments on commit e1274e2

Please sign in to comment.