File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -37,26 +37,23 @@ jobs:
37
37
runs-on : ubuntu-latest
38
38
steps :
39
39
- name : Checkout repository
40
- uses : actions/checkout@v2
40
+ uses : actions/checkout@v3
41
+ with :
42
+ fetch-depth : 0
41
43
42
44
- name : Check for new commits in the last 23 hours
43
45
id : check_commits
44
46
run : |
45
- # Get the current time and the time 23 hours ago in ISO 8601 format
46
- now=$(date --utc +%Y-%m-%dT%H:%M:%SZ)
47
- past=$(date --utc --date='23 hours ago' +%Y-%m-%dT%H:%M:%SZ)
48
-
49
- # Fetch commit history and check for commits in the last 23 hours
50
- if git rev-list --since="$past" --count HEAD > /dev/null; then
47
+ if git log --since="23 hours ago" --oneline | grep -q .; then
51
48
echo "New commits found in the last 23 hours."
52
- echo "::set-output name= new_commits:: true"
49
+ echo "new_commits= true" >> $GITHUB_OUTPUT
53
50
else
54
- echo "No new commits found in the last 23 hours."
55
- echo "::set-output name= new_commits:: false"
51
+ echo "No new commits in the last 23 hours."
52
+ echo "new_commits= false" >> $GITHUB_OUTPUT
56
53
fi
57
54
build :
58
55
needs : check_commits
59
- if : ${{ needs.check_commits.outputs.new_commits == 'true' && inputs.track != 'none' }}
56
+ if : needs.check_commits.outputs.new_commits == 'true'
60
57
name : Build Signed APK
61
58
runs-on : ubuntu-latest
62
59
env :
You can’t perform that action at this time.
0 commit comments