Skip to content

Commit 065eff9

Browse files
committed
ci: only trigger tag creation on github-actions PRs
1 parent 4a82cd0 commit 065eff9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/create-tag.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77

88
jobs:
99
create-tag:
10-
if: github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && startsWith(github.event.pull_request.head.ref, 'bump-version')
10+
if: >-
11+
github.event.pull_request.merged == true &&
12+
github.event.pull_request.user.login == 'github-actions' &&
13+
github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name &&
14+
startsWith(github.event.pull_request.head.ref, 'bump-version')
1115
runs-on: ubuntu-latest
1216
steps:
1317
- name: Checkout code

0 commit comments

Comments
 (0)