-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 1.43 KB
/
cpy_cron.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: cpy-cron
on:
push:
branches:
- test-*
schedule:
- cron: '45 0 * * *'
workflow_dispatch:
inputs:
do_commit:
description: 'Commit feed back to branch?'
type: boolean
required: true
default: false
log_debug:
description: 'Turn on debug output?'
type: boolean
required: true
default: true
jobs:
feedgen:
name: Update CPython release feed
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: |
requirements.txt
- name: Update pip
run: python -m pip install -U pip
- name: Install & report dependencies
run: |
python -m pip install -r requirements.txt
python --version
pip list
- name: Update feed
env:
LOG_DEBUG: ${{ inputs.log_debug }}
run: |
python make_feed.py
- name: Commit feed (depending)
env:
TRIGGER: ${{ github.event_name }}
COMMIT_OPTION: ${{ inputs.do_commit }}
LOG_DEBUG: ${{ inputs.log_debug }}
run: |
echo TRIGGER is "'"$TRIGGER"'"
echo COMMIT_OPTION is "'"$COMMIT_OPTION"'"
echo LOG_DEBUG is "'"$LOG_DEBUG"'"
git status
./do_commit