-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 1.78 KB
/
Copy pathstart.yaml
File metadata and controls
59 lines (55 loc) · 1.78 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Start
on:
workflow_call:
inputs:
number:
description: 'Number of runners to start.'
required: false
default: -1
type: number
ref:
description: "Repository ref to clone (for testing)."
required: false
default: v1.5.1
type: string
secrets:
OS_APPLICATION_CREDENTIAL_ID:
required: false
OS_APPLICATION_CREDENTIAL_SECRET:
required: false
outputs:
active:
description: "The number of active runners."
value: ${{ jobs.action_runners.outputs.active }}
jobs:
action_runners:
name: action runners
runs-on: ubuntu-latest
outputs:
active: ${{ steps.start.outputs.active }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: glotzerlab/jetstream2-admin
ref: ${{ inputs.ref }}
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.14"
- name: Install openstack
uses: glotzerlab/workflows/setup-uv@00c67cb577c36bdc2570845fc62d1a30e3383012 # 0.14.0
with:
lockfile: ".github/workflows/requirements.txt"
- id: start
name: Start action runners
run: |
echo "active=$(python3 start/start-action-runners.py ${{ inputs.number }})" >> $GITHUB_OUTPUT
env:
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
OS_AUTH_TYPE: v3applicationcredential
OS_AUTH_URL: https://js2.jetstream-cloud.org:5000/v3/
OS_IDENTITY_API_VERSION: 3
OS_REGION_NAME: "IU"
OS_INTERFACE: public