-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (32 loc) · 1.3 KB
/
prerelease-update-cache.yml
File metadata and controls
39 lines (32 loc) · 1.3 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
name: Prerelease - Update Cache
on:
workflow_dispatch:
jobs:
update_cache:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
with:
# https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
# git bash: ssh-keygen -t ed25519 -C "github-actions@cdisc.org"
# Add public key (.pub one) as a deploy key at Your repo -> Settings -> Security -> Deploy keys, check "Allow write access".
# Add private key as a secret at Your repo -> Settings -> Security -> Secrets and variables -> Actions
ssh-key: ${{ secrets.GH_ACTION_PRIVATE_KEY }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install requirements
run: |
pip install uv
uv pip sync --system --no-build pylock.toml
pip install -e .
- name: Run Update Cache Script
run: python core.py update-cache
env:
CDISC_LIBRARY_API_KEY: ${{ secrets.CDISC_LIBRARY_API_KEY }}
- name: Commit and Push Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update cache"