-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.02 KB
/
Copy pathmain_cache.yml
File metadata and controls
43 lines (36 loc) · 1.02 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
40
41
42
43
name: main cached
on:
workflow_dispatch:
# schedule:
# - cron: '0/5 * * * *'
jobs:
job1:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_LAM_ACC_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_LAM_SEC_ACC_KEY }}
AWS_DEFAULT_REGION: ap-northeast-1
ACTIVATE_URL: ${{ secrets.ACTIVATE_URL }}
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }}
AWS_F_NAME: ${{ secrets.AWS_F_NAME }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
main.py
requirements.txt
sparse-checkout-cone-mode: false
- uses: actions/setup-python@v5
id: get-python
with:
python-version: '3.x'
cache: 'pip'
- run: |
pip install -r requirements.txt
- uses: nick-fields/retry@v2.9.0
with:
timeout_minutes: 5
retry_on: error
max_attempts: 3
retry_wait_seconds: 90
command: python ./main.py