Skip to content

Commit 7ed46d9

Browse files
committed
codeplugs.yml: cache repeaterbook api responses from ~/.cache
1 parent 32ca2f5 commit 7ed46d9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/codeplugs.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,22 @@ jobs:
1919
uses: actions/setup-python@v2
2020
with:
2121
python-version: 3.8
22+
- name: Get current time
23+
uses: 1466587594/get-current-time@v2
24+
id: current-time
25+
with:
26+
format: YYYYMMDD-A
27+
utcOffset: "-08:00"
28+
- name: Cache .cache
29+
uses: actions/cache@v2
30+
with:
31+
path: ~/.cache
32+
key: dzcb-cache-${{ steps.current-time.outputs.formattedTime }}
2233
- name: Install dependencies
2334
run: |
2435
python -m pip install --upgrade pip
2536
pip install tox
2637
- name: Build Codeplugs
27-
env:
28-
REPEATERBOOK_USER: ${{ secrets.REPEATERBOOK_USER }}
29-
REPEATERBOOK_PASSWD: ${{ secrets.REPEATERBOOK_PASSWD }}
3038
run: tox
3139
- name: Archive Codeplugs
3240
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)