-
Notifications
You must be signed in to change notification settings - Fork 26
30 lines (27 loc) · 1014 Bytes
/
run-script.yml
File metadata and controls
30 lines (27 loc) · 1014 Bytes
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
on:
workflow_call:
secrets:
gh_token:
description: 'The GitHub token used to run the update-contributors script'
required: true
jobs:
run_update_contributors:
runs-on: ubuntu-latest
steps:
# TODO: consider replacing python/pip/update-web-metadata installs with docker image
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python -m pip install --upgrade pip wheel
- name: Install package
run: python -m pip install git+https://github.com/pyopenSci/update-web-metadata
- name: Check out the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run script from update-web-metadata repo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: update-contributors