-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
40 lines (33 loc) · 1.02 KB
/
action.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
name: "setup"
description: "Perform checkout and python setup for config repositories"
inputs:
ref:
description: "Git ref to check out"
required: true
token:
description: "Github token used in checkout"
required: true
requirements_file:
description: "Path to the requirements file"
required: false
default: scripts/requirements.txt
runs:
using: "composite"
steps:
- run: |
git config --global user.email checkpad-robot@users.noreply.github.com
git config --global user.name "checkpad-robot"
shell: bash
- uses: actions/checkout@v3
with:
token: ${{ inputs.token }}
fetch-depth: 0
ref: ${{ inputs.ref }} # Checkout by branch makes actions robust against reruns
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: pip install -r ${{ inputs.requirements_file }}
shell: bash
- run: git pull # Changes might have come in during python setup
shell: bash