1
1
#
2
- # Copyright (c) 2019-2021 P3TERX <https://p3terx.com>
3
- #
4
- # This is free software, licensed under the MIT License.
5
- # See /LICENSE for more information.
6
- #
7
2
# https://github.com/P3TERX/Actions-OpenWrt
3
+ #
8
4
# File: .github/workflows/update-checker.yml
9
5
# Description: Source code update checker
10
6
#
7
+ # Copyright (c) 2019-2024 P3TERX <https://p3terx.com>
8
+ #
9
+ # This is free software, licensed under the MIT License.
10
+ # See /LICENSE for more information.
11
+ #
11
12
12
- name : Update Checker
13
+ name : Update- Checker
13
14
14
15
env :
15
- REPO_URL : https://github.com/coolsnowwolf/lede
16
- REPO_BRANCH : master
16
+ REPO_URL : https://github.com/immortalwrt/immortalwrt
17
+ REPO_BRANCH : openwrt-23.05
17
18
18
19
on :
19
20
workflow_dispatch :
20
21
schedule :
21
- - cron : 0 */18 * * *
22
+ - cron : 0 0 1/7 * *
22
23
23
24
jobs :
24
25
check :
@@ -30,14 +31,14 @@ jobs:
30
31
id : getHash
31
32
run : |
32
33
git clone --depth 1 $REPO_URL -b $REPO_BRANCH .
33
- echo "::set-output name= commitHash:: $(git rev-parse HEAD)"
34
+ echo "commitHash= $(git rev-parse HEAD)" >> $GITHUB_OUTPUT
34
35
35
36
- name : Compare Commit Hash
36
37
id : cacheHash
37
- uses : actions/cache@v2
38
+ uses : actions/cache@v4
38
39
with :
39
40
path : .commitHash
40
- key : HEAD- ${{ steps.getHash.outputs.commitHash }}
41
+ key : commitHash_ ${{ steps.getHash.outputs.commitHash }}
41
42
42
43
- name : Save New Commit Hash
43
44
if : steps.cacheHash.outputs.cache-hit != 'true'
@@ -46,13 +47,13 @@ jobs:
46
47
47
48
- name : Trigger build
48
49
if : steps.cacheHash.outputs.cache-hit != 'true'
49
- uses : peter-evans/repository-dispatch@v1
50
+ uses : peter-evans/repository-dispatch@v2
50
51
with :
51
- token : ${{ secrets.ACTIONS_TRIGGER_PAT }}
52
+ token : ${{ secrets.TOKEN }}
52
53
event-type : Source Code Update
53
54
54
55
- name : Delete workflow runs
55
- uses : GitRML /delete-workflow-runs@main
56
+ uses : Mattraks /delete-workflow-runs@v2
56
57
with :
57
- retain_days : 1
58
- keep_minimum_runs : 1
58
+ retain_days : 0
59
+ keep_minimum_runs : 2
0 commit comments