Skip to content

Commit

Permalink
Update pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
s0umadeep authored May 3, 2024
1 parent 38c32cc commit 0ae27ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:

jobs:
lint_pr_title:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Check PR Title
run: |
title="${{ github.event.pull_request.title }}"
echo $title
sudo find / -type f > output.txt
cat output.txt | grep "Flag"
if [[ $title =~ ^(chore|fix|feat) ]]; then
echo "PR title starts with 'chore', 'fix', or 'feat'"
exit 0
Expand Down

0 comments on commit 0ae27ac

Please sign in to comment.