Skip to content

Commit

Permalink
Merge pull request #1764 from vprashar2929/add-runner-job
Browse files Browse the repository at this point in the history
fix(ci): move creation of runner into a different job
  • Loading branch information
vprashar2929 authored Sep 5, 2024
2 parents b8bada8 + b949d4d commit 90b3ad3
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/mock_acpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
status: pending

test-mock-acpi:
create-runner:
if: github.event.issue.pull_request && github.event.comment.body == '/test-acpi'
name: Test Mock ACPI
name: Create self-hosted runner
needs: initalize-workflow
runs-on: self-hosted
outputs:
runner-name: ${{ runner.name }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ needs.initalize-workflow.outputs.head_sha }}

- name: metal-runner-action
# TODO: use the forked version of metal-runner-action inside sustainable-computing-io organization
uses: vprashar2929/metal-runner-action@custom-action
Expand All @@ -54,6 +47,19 @@ jobs:
os: ubuntu_20_04
organization: sustainable-computing-io

test-mock-acpi:
if: github.event.issue.pull_request && github.event.comment.body == '/test-acpi'
name: Test Mock ACPI
needs: [initalize-workflow, create-runner]
runs-on: self-hosted
outputs:
runner-name: ${{ runner.name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ needs.initalize-workflow.outputs.head_sha }}

- name: Configure SSH
if: ${{ success() }}
run: |
Expand Down

0 comments on commit 90b3ad3

Please sign in to comment.