Skip to content

Commit 5411281

Browse files
authored
Fix workflow conditions for pull request events
1 parent 9664de8 commit 5411281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/contrib.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
pull-requests: write
4545
steps:
4646
- name: cla
47-
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
47+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request'
4848
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
6363
release-labels:
6464
runs-on: ubuntu-latest
6565
# Skip tagging for draft PRs.
66-
if: ${{ github.event_name == 'pull_request_target' && !github.event.pull_request.draft }}
66+
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.draft }}
6767
steps:
6868
- name: release-labels
6969
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

0 commit comments

Comments
 (0)