Skip to content

Commit

Permalink
Enable "Auto label" for merge-queue actions (#3409)
Browse files Browse the repository at this point in the history
This will fix merge-queue CI actions as this is a required CI action, but wasn't being run for jobs entering the queue.
  • Loading branch information
tautschnig committed Aug 2, 2024
1 parent b337081 commit 550e4d4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/extra_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
# See <https://github.com/actions/labeler/issues/121> for more details.

name: Kani Extra
on: pull_request_target
on:
pull_request_target:
merge_group:

jobs:
# Keep this job minimal since it requires extra permission
Expand All @@ -45,5 +47,5 @@ jobs:
name: Verification Benchmarks
needs: auto-label
permissions: {}
if: contains(needs.auto-label.outputs.all-labels, 'Z-BenchCI')
if: ${{ contains(needs.auto-label.outputs.all-labels, 'Z-BenchCI') && github.event_name != 'merge_group' }}
uses: ./.github/workflows/bench.yml
27 changes: 20 additions & 7 deletions .github/workflows/toolchain-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
run: git clean -f

- name: Create Pull Request
id: create_pr
if: ${{ env.next_step == 'create_pr' }}
uses: peter-evans/create-pull-request@v6
with:
Expand All @@ -47,14 +48,26 @@ jobs:
Update Rust toolchain from nightly-${{ env.current_toolchain_date }} to
nightly-${{ env.next_toolchain_date }} without any other source changes.
This is an automatically generated pull request. If any of the CI checks fail,
manual intervention is required. In such a case, review the changes at
https://github.com/rust-lang/rust from
https://github.com/rust-lang/rust/commit/${{ env.current_toolchain_hash }} up to
https://github.com/rust-lang/rust/commit/${{ env.next_toolchain_hash }}. The log
for this commit range is:
- name: Add debugging hints
if: ${{ steps.create_pr.outputs.pull-request-number }}
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: ${{ steps.create_pr.outputs.pull-request-number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: >
This is an automatically generated pull request. If any of the CI checks fail,
manual intervention is required. In such a case, review the changes at
https://github.com/rust-lang/rust from
https://github.com/rust-lang/rust/commit/${{ env.current_toolchain_hash }} up to
https://github.com/rust-lang/rust/commit/${{ env.next_toolchain_hash }}. The log
for this commit range is:
${{ env.git_log }}
})
${{ env.git_log }}
- name: Create Issue
if: ${{ env.next_step == 'create_issue' }}
uses: dacbd/create-issue-action@main
Expand Down

0 comments on commit 550e4d4

Please sign in to comment.