Skip to content

Commit

Permalink
testing secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmenezes committed Feb 19, 2024
1 parent a22fba7 commit 800a3fc
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,36 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh extension install endersonmenezes/gh-env-to-repo
gh extension install endersonmenezes/gh-env-to-repo
gh env-to-repo endersonmenezes gh-env-to-repo
proof-of-concept:
runs-on: ubuntu-latest
needs: creating_secret
steps:
- name: Verify secret
run: |
if [ -z "${{ secrets.TEST }}" ]; then
echo "Secret not found"
exit 1
else
echo "Secret found"
fi
if [ "${{ secrets.TEST }}" != "TEST" ]; then
echo "Secret value is not TEST"
exit 1
else
echo "Secret value is TEST"
fi
if [ -z "${{ secrets.TEST_WITH_QUOTES }}" ]; then
echo "Secret with quotes not found"
exit 1
else
echo "Secret with quotes found"
fi
if [ "${{ secrets.TEST_WITH_QUOTES }}" != "TEST" ]; then
echo "Secret with quotes value is not TEST"
exit 1
else
echo "Secret with quotes value is TEST"
fi

0 comments on commit 800a3fc

Please sign in to comment.