mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
.github: improve body text of PR for dev-lang/rust
Improve body text of each PR for `dev-lang/rust`, by mentioning that it should be merged together with its paired PR in portage-stable. Explicitly name `dev-lang/rust` instead of `Rust`, because now there are `dev-lang/rust` as well as `virtual/rust`. Rename the dispatched event-type name to `rust-pull-request-main`, as `cargo` has already disappeared. Make the repository-dispatch action send additional client-payload with a field `coreos-overlay-pull-request-number`, which will be later used by the corresponding PR in portage-stable for adding a link back to the PR in coreos-overlay.
This commit is contained in:
parent
ea32f00966
commit
d238385c36
@ -29,7 +29,7 @@ popd >/dev/null || exit
|
||||
|
||||
popd >/dev/null || exit
|
||||
|
||||
generate_patches dev-lang rust Rust
|
||||
generate_patches dev-lang rust dev-lang/rust
|
||||
|
||||
apply_patches
|
||||
|
||||
|
@ -30,6 +30,7 @@ jobs:
|
||||
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||
run: .github/workflows/rust-apply-patch.sh
|
||||
- name: Create pull request for main
|
||||
id: create-pull-request
|
||||
uses: peter-evans/create-pull-request@v2
|
||||
if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1
|
||||
with:
|
||||
@ -38,9 +39,12 @@ jobs:
|
||||
branch: rust-${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}-main
|
||||
author: Flatcar Buildbot <buildbot@flatcar-linux.org>
|
||||
committer: Flatcar Buildbot <buildbot@flatcar-linux.org>
|
||||
title: Upgrade Rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||
commit-message: Upgrade Rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||
body: Upgrade Rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||
title: Upgrade dev-lang/rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||
commit-message: Upgrade dev-lang/rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||
body: |
|
||||
Upgrade dev-lang/rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||
|
||||
This PR should be merged together with a corresponding PR in portage-stable for `virtual/rust` ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}.
|
||||
labels: main
|
||||
- name: Send repository dispatch to portage-stable
|
||||
uses: peter-evans/repository-dispatch@v1.0.0
|
||||
@ -48,4 +52,5 @@ jobs:
|
||||
with:
|
||||
token: ${{ secrets.FLATCAR_PORTAGE_STABLE_ACCESS_TOKEN }}
|
||||
repository: flatcar-linux/portage-stable
|
||||
event-type: cargo-pull-request-main
|
||||
event-type: rust-pull-request-main
|
||||
client-payload: '{"coreos-overlay-pull-request-number": "${{ steps.create-pull-request.outputs.pull-request-number }}"}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user