Skip to content

Commit

Permalink
add check for .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorsector committed Jan 16, 2024
1 parent dac85be commit d5dcb41
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/1-tbd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
workflow_dispatch:
# Add events that trigger this workflow.
# TBD-step-1-event:
push:
paths:
- .env

# Reference: https://docs.github.com/en/actions/security-guides/automatic-token-authentication
permissions:
Expand Down Expand Up @@ -54,6 +57,15 @@ jobs:
fetch-depth: 0 # Let's get all the branches.

# TBD-step-1-additional-steps
- name: Ensure .env is gone
run: |
if [ -f .env ]; then
echo "The .env file still exists in the root directory, please remove it."
exit 1
else
echo "Great! The .env is no longer in the root directory."
exit 0
fi
# In README.md, switch step 1 for step 2.
- name: Update to step 2
Expand Down

0 comments on commit d5dcb41

Please sign in to comment.