We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3451bd6 commit 286b201Copy full SHA for 286b201
.github/workflows/3-tbd.yml
@@ -9,6 +9,9 @@ on:
9
workflow_dispatch:
10
# Add events that trigger this workflow.
11
# TBD-step-3-event:
12
+ push:
13
+ paths:
14
+ - .gitignore
15
16
# Reference: https://docs.github.com/en/actions/security-guides/automatic-token-authentication
17
permissions:
@@ -54,6 +57,15 @@ jobs:
54
57
fetch-depth: 0 # Let's get all the branches.
55
58
56
59
# TBD-step-3-additional-steps
60
+ - name: Check if .gitignore contains .env
61
+ run: |
62
+ if grep -qw ".env" .gitignore; then
63
+ echo ".env is in .gitignore"
64
+ exit 0
65
+ else
66
+ echo ".env is not in .gitignore"
67
+ exit 1
68
+ fi
69
70
# In README.md, switch step 3 for step 4.
71
- name: Update to step 4
0 commit comments