Testing how secrets work #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check access token | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: ["main"] | |
# comment | |
jobs: | |
check_for_my_secret: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if AQT_ACCESS_TOKEN is set | |
run: | | |
if [ -z "${{ secrets.AQT_ACCESS_TOKEN }}" ]; then | |
echo "AQT_ACCESS_TOKEN is not present or is empty!" | |
exit 1 | |
else | |
echo "AQT_ACCESS_TOKEN is present." | |
fi |