Github Actions Secrets
Check if secret or env var is set
- name: Check if an env var is set
run: |
if [ -z "$" ]; then
echo "ENV DLD_TEMPLATES_RELEASE is NOT set"
exit 1
else
echo "ENV DLD_TEMPLATES_RELEASE is set"
fi
- name: Check if a secret is set
run: |
if [ -z "$" ]; then
echo "DLD_TEMPLATES_RELEASE is NOT set"
exit 1
else
echo "DLD_TEMPLATES_RELEASE is set"
fi
- name: Check if GITHUB secret is set (always true)
run: |
if [ -z "$" ]; then
echo "GITHUB_TOKEN is NOT set"
exit 1
else
echo "GITHUB_TOKEN is set"
fi