Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-r-warren committed May 1, 2024
1 parent b428d78 commit d66b6c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sherlock-check-ticket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Ticket Present in PR Title'
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "Checking for ticket in PR title..."
if [[ ${{ github.event.pull_request.title }} =~ [A-Z]{2,}-[0-9]+ ]]; then
if [[ "$PR_TITLE" =~ [A-Z]{2,}-[0-9]+ ]]; then
echo "Ticket found in PR title!"
exit 0
else
Expand Down

0 comments on commit d66b6c5

Please sign in to comment.