From 69fad767632322158cc7799ca19ef90dedb9369f Mon Sep 17 00:00:00 2001 From: kamilkaczmarek97 Date: Thu, 4 Jan 2024 21:28:06 +0100 Subject: [PATCH] actions/checkout@v3 # Updated to v3 --- .github/workflows/empty_commit.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/empty_commit.yml b/.github/workflows/empty_commit.yml index 89387af..215fb8f 100644 --- a/.github/workflows/empty_commit.yml +++ b/.github/workflows/empty_commit.yml @@ -2,8 +2,7 @@ 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: @@ -11,11 +10,16 @@ jobs: 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