From cc41f8cc958b7d0f05ad9c6b08483bf6cd02721f Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 18 Apr 2025 00:51:51 -0400 Subject: [PATCH] update sync --- .github/workflows/sync-changelog.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync-changelog.yml b/.github/workflows/sync-changelog.yml index e4fc40b..16f879d 100644 --- a/.github/workflows/sync-changelog.yml +++ b/.github/workflows/sync-changelog.yml @@ -1,4 +1,4 @@ -name: Sync CHANGELOG to Docker Repo +name: Sync Changelog to Docker Repo on: push: @@ -8,6 +8,7 @@ on: jobs: sync: runs-on: ubuntu-latest + steps: - name: Checkout FileRise uses: actions/checkout@v4 @@ -28,12 +29,12 @@ jobs: - name: Commit & push working-directory: docker-repo run: | - git config user.name "github-actions[bot]" + git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - if git diff --quiet; then + git add CHANGELOG.md + if git diff --cached --quiet; then echo "No changes to commit" else - git add CHANGELOG.md - git commit -m "chore: sync CHANGELOG from FileRise" + git commit -m "chore: sync CHANGELOG.md from FileRise" git push origin main fi \ No newline at end of file