Skip to content

Commit 2ea849f

Browse files
jsturtevantCopilot
andauthored
Update .github/workflows/copilot-setup-steps.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 9a705ff commit 2ea849f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on: workflow_dispatch
66
jobs:
77
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
88
copilot-setup-steps:
9-
# run on either intel or amd kvm runner based on run id last digit is even/odd
10-
runs-on: ${{ (endsWith(github.run_id, '0') || endsWith(github.run_id, '2') || endsWith(github.run_id, '4') || endsWith(github.run_id, '6') || endsWith(github.run_id, '8')) && fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-amd"]') || fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-intel"]') }}
9+
# run on AMD when the run_id is even, Intel when the run_id is odd
10+
runs-on: ${{ (github.run_id % 2 == 0) && fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-amd"]') || fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-intel"]') }}
1111

1212
# Set the permissions to the lowest permissions possible needed for your steps.
1313
# Copilot will be given its own token for its operations.

0 commit comments

Comments
 (0)