Skip to content

Commit

Permalink
trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 26, 2024
1 parent ea55882 commit 6808fcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ on:
type: string
outputs:
has-secrets:
value: 'false'
value: ${{ jobs.example_job.outputs.output }}

jobs:
check:
runs-on: ubuntu-latest
outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }}
output: ${{ steps.check.outputs.output }}
steps:
- id: check
run: |
if [[ -n "${{ secrets[inputs.secret_name] }}" ]]; then
echo "has-secrets=true" >> $GITHUB_OUTPUT
echo "Secret for ${{ inputs.secret_name }} is available"
echo "output=true" >> $GITHUB_OUTPUT
else
echo "Secret for ${{ inputs.secret_name }} is NOT available"
fi

0 comments on commit 6808fcb

Please sign in to comment.