forked from hugcabbage/shared-lede
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (55 loc) · 1.41 KB
/
renew-all.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
68
name: renew all
on:
workflow_dispatch:
permissions:
contents: write
jobs:
renew:
runs-on: ubuntu-latest
env:
DEPLOY_DIR: ${{ matrix.deploydir }}
DOT_CONFIG: ${{ matrix.dotconfig }}
strategy:
fail-fast: false
matrix:
deploydir:
- preset-lede
- preset-openwrt
- preset-immortalwrt
- preset-lienol-openwrt
- preset-x-wrt
dotconfig:
- 1.config
- 2.config
include:
- deploydir: preset-openwrt
dotconfig: multi-common.config
- deploydir: preset-openwrt
dotconfig: multi-mini.config
steps:
- uses: actions/checkout@v4
- name: Carry out
env:
RENEW_PY: extra-files/renew.py
run: |
chmod +x $RENEW_PY
$RENEW_PY
- uses: actions/upload-artifact@v3
with:
name: ${{ env.DEPLOY_DIR }}
path: ${{ env.DEPLOY_DIR }}
commit:
if: always()
needs: renew
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v3
- uses: geekyeggo/delete-artifact@v2
with:
name: '*'
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: renew .config files
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>