Skip to content

Commit

Permalink
actions/checkout@v3 # Updated to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkaczmareksolutions committed Jan 4, 2024
1 parent 050df0b commit 69fad76
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/empty_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@ name: Automated Empty Commit

on:
schedule:
# Schedule to run every 5 minutes
- cron: '*/5 * * * *'
- cron: '*/5 * * * *' # Every 5 minutes for testing

jobs:
make-empty-commit:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3 # Updated to v3
with:
persist-credentials: false # Prevents automatic persisting of credentials

- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "github-actions@example.com"
- name: Make Empty Commit
run: |
git config user.name "Automated"
git config user.email "automated@example.com"
git commit --allow-empty -m "Automated empty commit"
git push
git push origin HEAD:master

0 comments on commit 69fad76

Please sign in to comment.