update sync
This commit is contained in:
11
.github/workflows/sync-changelog.yml
vendored
11
.github/workflows/sync-changelog.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Sync CHANGELOG to Docker Repo
|
name: Sync Changelog to Docker Repo
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
sync:
|
sync:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout FileRise
|
- name: Checkout FileRise
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -28,12 +29,12 @@ jobs:
|
|||||||
- name: Commit & push
|
- name: Commit & push
|
||||||
working-directory: docker-repo
|
working-directory: docker-repo
|
||||||
run: |
|
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"
|
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"
|
echo "No changes to commit"
|
||||||
else
|
else
|
||||||
git add CHANGELOG.md
|
git commit -m "chore: sync CHANGELOG.md from FileRise"
|
||||||
git commit -m "chore: sync CHANGELOG from FileRise"
|
|
||||||
git push origin main
|
git push origin main
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user