-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.11 KB
/
gha.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: github action
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
set-runner:
runs-on: ubuntu-latest
outputs:
RUNNER: ${{ steps.set-runner.outputs.RUNNER }}
steps:
- name: set runner
id: set-runner
run: |
echo "hello world"
echo "RUNNER=arc-runners-default-stg" >> $GITHUB_OUTPUT
# Run merge queues on persistent runners
if [[ $GITHUB_REF_NAME == *"gh-readonly-queue"* ]]; then
echo "RUNNER=ubuntu-latest" >> $GITHUB_OUTPUT
else
echo "RUNNER=arc-runners-default-stg" >> $GITHUB_OUTPUT
fi
env
test-job:
needs: [set-runner]
runs-on: ${{ needs.set-runner.outputs.RUNNER }}
steps:
- uses: actions/checkout@v4
- run: sleep 10
test-job2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sleep 10