-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 769 Bytes
/
Copy pathblank.yml
File metadata and controls
27 lines (23 loc) · 769 Bytes
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
name: Auto Update Repo
on:
push:
branches:
- main # Triggers only when you push to the main branch
permissions:
contents: write # Grants permission to make changes back to the repo
jobs:
update-task:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4 # Clones your repo into the runner
- name: Run a Task
run: |
echo "Last updated on: $(date)" > last_push_log.txt
- name: Commit and Push Changes
run: |
git config --global user.name "Kishan Miskin"
git config --global user.email "kishanmiskinn@gmail.com"
git add .
git commit -m "Automated update from GitHub Actions" || echo "No changes to commit"
git push