Skip to content

Try using an existing GHA with the same implementation #2

Try using an existing GHA with the same implementation

Try using an existing GHA with the same implementation #2

Workflow file for this run

name: CI Pipeline
on:
workflow_dispatch:
push:
branches:
- main
jobs:
determine-runner:
runs-on: ubuntu-latest
outputs:
runner: ${{ steps.runner-selector.outputs.use-runner }}
steps:
- name: Select self-hosted runner with fallback
id: runner-selector
uses: mendesbarreto/runner-selector-action@v1
with:
primary-runner: "linux-arm64"
fallback-runner: "thevickypedia-default"
github-token: ${{ secrets.GIT_TOKEN }}
check-org-runners: true
build-and-test:
needs: determine-runner
runs-on: ${{ fromJson(needs.determine-runner.outputs.runner) }}
steps:
- name: Print selected runner
run: echo "This job is running on ${{ needs.determine-runner.outputs.runner }}"
- name: Checkout code
uses: actions/checkout@v4