Skip to content

Commit

Permalink
Add random sleep and try again
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Oct 23, 2023
1 parent 834f32a commit d520409
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/structure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
required: true
default: '8.0'
schedule:
- cron: '0 4 * * *'
- cron: '0 4 * * 1' # Mondays morning.

jobs:
structure:
Expand Down Expand Up @@ -68,3 +68,8 @@ jobs:
git commit -m "[auto-generated] Update structure file for ${{ env.MOODLE_BRANCH }}"
git pull -r
git push
if [ $? -ne 0 ]; then
sleep $((RANDOM % 30))
git pull -r
git push
fi

0 comments on commit d520409

Please sign in to comment.