Skip to content

Commit

Permalink
check that .env does not contain references to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
k15r committed Dec 17, 2024
1 parent 643c6a4 commit 5309088
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check Release Branch

on:
pull_request:
branches:
- "release-*"
jobs:
validate-envs:
name: Validate .env file
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

# check that the .env file does not contain references to the main branch
- name: Check .env file
run: |
if grep -q "main" .env; then
echo "The .env file contains references to the main branch"
exit 1
fi

0 comments on commit 5309088

Please sign in to comment.