Skip to content

Commit a4c9e23

Browse files
[stable2509] Backport #10343 (#10344)
Backport #10343 into `stable2509` from EgorPopelyaev. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Egor_P <egor@parity.io>
1 parent 7304752 commit a4c9e23

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/release-30_publish_release_draft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
GITHUB_TOKEN: ${{ steps.generate_write_token.outputs.token }}
180180
run: |
181181
mkdir -p ${{ github.workspace}}/runtimes/
182-
gh run download ${{ github.event.inputs.build_run_id }} --dir ${{ github.workspace}}/runtimes
182+
gh run download ${{ inputs.build_run_id }} --dir ${{ github.workspace}}/runtimes
183183
ls -la ${{ github.workspace}}/runtimes
184184
185185
- name: Get runtime info

.github/workflows/release-reusable-rc-build.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,32 @@ jobs:
4242
# However, env variables don't work for forks: https://github.com/orgs/community/discussions/44322
4343
# This workaround sets the container image for each job using 'set-image' job output.
4444
runs-on: ubuntu-latest
45+
env:
46+
BINARY: ${{ inputs.binary }}
4547
outputs:
4648
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
49+
RUNNER: ${{ steps.set_image.outputs.RUNNER }}
4750
steps:
4851
- name: Checkout
4952
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5053

5154
- id: set_image
52-
run: cat .github/env >> $GITHUB_OUTPUT
55+
run: |
56+
cat .github/env >> $GITHUB_OUTPUT
57+
RUNNER=""
58+
if [[ "${BINARY}" =~ "polkadot-parachain" || "${BINARY}" =~ "polkadot-omni-node" ]]; then
59+
RUNNER="ubuntu-latest-m"
60+
echo "Using ubuntu-latest-m runner"
61+
else
62+
RUNNER="ubuntu-latest"
63+
echo "Using ubuntu-latest runner"
64+
fi
65+
echo "RUNNER=${RUNNER}" >> $GITHUB_OUTPUT
5366
5467
build-rc:
5568
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
5669
needs: [set-image]
57-
runs-on: ubuntu-latest-m
70+
runs-on: ${{ needs.set-image.outputs.RUNNER }}
5871
environment: release
5972
container:
6073
image: ${{ needs.set-image.outputs.IMAGE }}

0 commit comments

Comments
 (0)