mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
.github: Improve body text of PR for virtual/rust
Improve body text of each PR for `virtual/rust`, by mentioning that it should be merged together with its paired PR in coreos-overlay. Explicitly name `virtual/rust` instead of `Cargo`, because there is no more ebuild for `cargo`. Rename the dispatched event-type name to `rust-pull-request-main`, as `cargo` has already disappeared. Make the repository-dispatch action receive additional client-payload with a field `coreos-overlay-pull-request-number` sent by the corresponding PR in coreos-overlay. The PR number is then used for adding a link in the body text, for pointing back to the PR in coreos-overlay.
This commit is contained in:
parent
3258e0b37c
commit
f4ba9b110c
@ -1,6 +1,6 @@
|
|||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [cargo-pull-request-main]
|
types: [rust-pull-request-main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
flatcar-rust-prs:
|
flatcar-rust-prs:
|
||||||
@ -9,7 +9,7 @@ jobs:
|
|||||||
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
|
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Fetch latest Cargo release
|
- name: Fetch latest virtual Rust release
|
||||||
id: fetch-latest-release
|
id: fetch-latest-release
|
||||||
run: |
|
run: |
|
||||||
git clone --depth=1 --no-checkout https://github.com/rust-lang/rust
|
git clone --depth=1 --no-checkout https://github.com/rust-lang/rust
|
||||||
@ -31,7 +31,10 @@ jobs:
|
|||||||
branch: rust-${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}-main
|
branch: rust-${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}-main
|
||||||
author: Flatcar Buildbot <buildbot@flatcar-linux.org>
|
author: Flatcar Buildbot <buildbot@flatcar-linux.org>
|
||||||
committer: Flatcar Buildbot <buildbot@flatcar-linux.org>
|
committer: Flatcar Buildbot <buildbot@flatcar-linux.org>
|
||||||
title: Upgrade Cargo in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
title: Upgrade virtual Rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||||
commit-message: Upgrade Cargo in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
commit-message: Upgrade virtual Rust in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
||||||
body: Upgrade Cargo in main from ${{ steps.apply-patch-main.outputs.VERSION_OLD }} to ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
|
body: |
|
||||||
|
Upgrade virtual 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 coreos-overlay for [`dev-lang/rust` ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}](https://github.com/flatcar-linux/coreos-overlay/pull/${{ github.event.client_payload.coreos-overlay-pull-request-number}}).
|
||||||
labels: main
|
labels: main
|
||||||
|
Loading…
Reference in New Issue
Block a user