File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 55 schedule :
66 - cron : " 15 */3 * * *"
77
8+ env :
9+ COMMIT_DEPTH : 500
10+
811jobs :
912 check-queue :
1013 name : Check Queue
4043 repository : " bevyengine/bevy"
4144 ref : " main"
4245 path : " bevy"
43- fetch-depth : 100
46+ fetch-depth : ${{ env.COMMIT_DEPTH }}
4447 - uses : actions/checkout@v4
4548 with :
4649 ref : " queue"
5457 run : |
5558 cd bevy
5659 i=0
57- for commit in `git log --no-abbrev-commit --pretty=oneline | cut -d ' ' -f 1 | head -n 100`
60+ max=3
61+ for commit in `git log --no-abbrev-commit --pretty=oneline | sort | cut -d ' ' -f 1 | head -n ${{ env.COMMIT_DEPTH }}`
5862 do
5963 if find ../results/ | grep $commit 1> /dev/null 2>&1
6064 then
6367 i=$((i + 1))
6468 touch ../queue/$commit
6569 fi
70+ if [ $i -ge $max ]; then
71+ break
72+ fi
6673 done
67- echo "Added $i commits over the last 100 "
74+ echo "Added $i commits"
6875 echo "ADDED=$i" >> "$GITHUB_OUTPUT"
6976
7077 - name : Commit
7582 git config user.email '<>'
7683
7784 git add .
78- git commit -m "Queue historic commits"
85+ git commit -m "Queue ${{ steps.queue.outputs.ADDED }} historic commits"
7986 git push
You can’t perform that action at this time.
0 commit comments