Skip to content

Commit

Permalink
add logic for step 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorsector committed Jan 16, 2024
1 parent a34cfd8 commit 3451bd6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/2-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-2-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-2-additional-steps
- name: Ensure .env is gone from history
run: |
if [ -n "$(git log --stat --all -- .env)" ]; then
echo "File .env is still in the repository's history, please remove it."
exit 1
else
echo "File .env doesn't exist in the repository's history."
exit 0
fi
# In README.md, switch step 2 for step 3.
- name: Update to step 3
Expand Down

0 comments on commit 3451bd6

Please sign in to comment.