Skip to content

Commit

Permalink
ci(semantic_pr): 🎡 validate PR commits correctly in commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
yikoyu committed Jan 3, 2025
1 parent bbe93b3 commit d6eedb4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/semantic_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ jobs:
node: [18]

steps:
- uses: actions/checkout@v4
- name: Checkout code (push event)
if: github.event_name == 'push'
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Checkout code (pull_request_target event)
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
persist-credentials: false

Expand Down

0 comments on commit d6eedb4

Please sign in to comment.