Skip to content
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

ci(cancel-previous-workflows): use pull_request_target #1741

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Conversation

kenji-miyake
Copy link
Contributor

@kenji-miyake kenji-miyake commented Aug 31, 2022

Description

According to the documentation, it won't work with PRs from forks.
https://github.com/styfle/cancel-workflow-action#advanced-pull-requests-from-forks

I guess pull_request_target can be used instead of workflow_call.

Related?: styfle/cancel-workflow-action#139

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
@kenji-miyake
Copy link
Contributor Author

kenji-miyake commented Aug 31, 2022

I'll test this in another PR.

-> #1743

@kenji-miyake
Copy link
Contributor Author

Before: https://github.com/autowarefoundation/autoware.universe/runs/8108661116?check_suite_focus=true

Found 5 runs total.
Found 1 runs to cancel.
Canceling run:  {
  id: 2961952881,
  head_sha: '38a9242a26413ad3b1a8edc491de86807b3ae900',
  status: 'in_progress',
  html_url: 'https://github.com/autowarefoundation/autoware.universe/actions/runs/2961952881'
}
Error while canceling workflow_id 194[79](https://github.com/autowarefoundation/autoware.universe/runs/8108661116?check_suite_focus=true#step:2:80)065: Resource not accessible by integration

Error while canceling workflow_id 19479066: Resource not accessible by integration

After: https://github.com/autowarefoundation/autoware.universe/runs/8108521086?check_suite_focus=true

Cancel run 2962099893 responded with status 202
Canceling run:  {
  id: 2962093970,
  head_sha: 'fe97dd74953ceb99affa9e6593b7c00f67e3540c',
  status: 'in_progress',
  html_url: 'https://github.com/autowarefoundation/autoware.universe/actions/runs/2962093970'
}
Cancel run 2962093970 responded with status 202

Cancel run 2962093970 responded with status 202

Cancel run 2962093970 responded with status 202

Cancel run 2962093970 responded with status 202

Cancel run 2962093970 responded with status 202

Cancel run 2962093970 responded with status 202

Cancel run 2962093970 responded with status 202

Cancel Complete.

@kenji-miyake kenji-miyake enabled auto-merge (squash) August 31, 2022 08:31
@kenji-miyake kenji-miyake merged commit 00021b7 into main Aug 31, 2022
@kenji-miyake kenji-miyake deleted the update-ci branch August 31, 2022 09:06
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Sep 28, 2022
…ation#1741)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…ation#1741)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 3, 2022
…ation#1741)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
yukke42 pushed a commit to tzhong518/autoware.universe that referenced this pull request Oct 14, 2022
…ation#1741)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
boyali pushed a commit to boyali/autoware.universe that referenced this pull request Oct 19, 2022
…ation#1741)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants