1 parent c52d2b2 commit eead6d0Copy full SHA for eead6d0
1 file changed
.github/workflows/blank.yml
@@ -0,0 +1,27 @@
1
+name: Auto Update Repo
2
+on:
3
+ push:
4
+ branches:
5
+ - main # Triggers only when you push to the main branch
6
+
7
+permissions:
8
+ contents: write # Grants permission to make changes back to the repo
9
10
+jobs:
11
+ update-task:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout Code
15
+ uses: actions/checkout@v4 # Clones your repo into the runner
16
17
+ - name: Run a Task
18
+ run: |
19
+ echo "Last updated on: $(date)" > last_push_log.txt
20
21
+ - name: Commit and Push Changes
22
23
+ git config --global user.name "Kishan Miskin"
24
+ git config --global user.email "kishanmiskinn@gmail.com"
25
+ git add .
26
+ git commit -m "Automated update from GitHub Actions" || echo "No changes to commit"
27
+ git push
0 commit comments