Skip to content

Commit

Permalink
feat(20-workflow-security): add intermediate variable solution
Browse files Browse the repository at this point in the history
  • Loading branch information
lauromueller committed Dec 26, 2023
1 parent aa96d65 commit 3f0bd33
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/20-1-workflow-security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@ jobs:
echo "PR is not a feature"
exit 1
fi
safer-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check PR title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
if [[ $TITLE =~ ^feat ]]; then
echo "PR is a feature"
exit 0
else
echo "PR is not a feature"
exit 1
fi

0 comments on commit 3f0bd33

Please sign in to comment.