generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (28 loc) · 806 Bytes
/
main.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
name: Auto Push
on:
schedule:
- cron: '0 0 * * *' # S'exécute tous les jours à minuit
push:
branches:
- main
jobs:
auto-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Make 30 commits
run: |
for i in {1..30}
do
echo "Commit number $i on $(date)" >> auto-push-file.md
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add auto-push-file.md
git commit -m "Auto-push commit $i"
echo "Commit $i done"
done
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}