Skip to content

Commit

Permalink
Update test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vipul-rawat authored Dec 25, 2024
1 parent 4ecacf0 commit b94100e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ on:
- master

jobs:
print-secret:
check-secret:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Check secret value
id: secret-check
run: |
if [[ "${{ secrets.MY_SECRET }}" == "value is secret" ]]; then
echo "matched=true" >> $GITHUB_ENV
else
echo "matched=false" >> $GITHUB_ENV
fi
- name: Print GitHub Secret
env:
MY_SECRET: ${{ secrets.DEPLOYMENT_KEY }}
- name: Output result
run: |
echo "The secret is: $MY_SECRET"
echo "Secret match result: ${{ env.matched }}"

0 comments on commit b94100e

Please sign in to comment.