-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix/ci execute condition #641
Conversation
pull_request_target: | ||
types: | ||
- labeled | ||
- pull_request_target |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
常にpull_request_targetで動作するようにしました。
github.event.pull_request.head.repo.full_name != github.repository && | ||
github.event.pull_request.action == 'labeled' && | ||
contains(github.event.pull_request.labels.*.name, 'allow execute workflow') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここでforkからのPRであればlabeledでしか動作しないように変更しています。
with: | ||
ref: 'refs/pull/${{ github.event.number }}/merge' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actions/checkout#518 (comment) の変更を適用してみています。
e300df5
to
0f296a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#640 で一部のワークフローの実行条件を修正しましたが、意図した動作でなかったので修正しています。