Skip to content

Commit 90b3ad3

Browse files
authored
Merge pull request #1764 from vprashar2929/add-runner-job
fix(ci): move creation of runner into a different job
2 parents b8bada8 + b949d4d commit 90b3ad3

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/mock_acpi.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,12 @@ jobs:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030
status: pending
3131

32-
test-mock-acpi:
32+
create-runner:
3333
if: github.event.issue.pull_request && github.event.comment.body == '/test-acpi'
34-
name: Test Mock ACPI
34+
name: Create self-hosted runner
3535
needs: initalize-workflow
36-
runs-on: self-hosted
37-
outputs:
38-
runner-name: ${{ runner.name }}
36+
runs-on: ubuntu-latest
3937
steps:
40-
- name: Checkout code
41-
uses: actions/checkout@v4
42-
with:
43-
ref: ${{ needs.initalize-workflow.outputs.head_sha }}
44-
4538
- name: metal-runner-action
4639
# TODO: use the forked version of metal-runner-action inside sustainable-computing-io organization
4740
uses: vprashar2929/metal-runner-action@custom-action
@@ -54,6 +47,19 @@ jobs:
5447
os: ubuntu_20_04
5548
organization: sustainable-computing-io
5649

50+
test-mock-acpi:
51+
if: github.event.issue.pull_request && github.event.comment.body == '/test-acpi'
52+
name: Test Mock ACPI
53+
needs: [initalize-workflow, create-runner]
54+
runs-on: self-hosted
55+
outputs:
56+
runner-name: ${{ runner.name }}
57+
steps:
58+
- name: Checkout code
59+
uses: actions/checkout@v4
60+
with:
61+
ref: ${{ needs.initalize-workflow.outputs.head_sha }}
62+
5763
- name: Configure SSH
5864
if: ${{ success() }}
5965
run: |

0 commit comments

Comments
 (0)