Skip to content

A self-hosted media server and file management system

fix: changelog needs to commit to main and not prod

aminnausinaf3c7a0efbc1
diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml
index 0e765340..9b2c4d16 100644
--- a/.github/workflows/ci-main.yml
+++ b/.github/workflows/ci-main.yml
@@ -139,7 +139,7 @@ jobs:
with:
previous_tag: ${{ needs.beta-flow.outputs.previous_tag }}
tag: ${{ needs.beta-flow.outputs.tag }}
- branch: prod
+ branch: main
# ==========================
# Publish Docker Image
diff --git a/.github/workflows/generate-changelog.yml b/.github/workflows/generate-changelog.yml
index 795d28e3..d863a8e6 100644
--- a/.github/workflows/generate-changelog.yml
+++ b/.github/workflows/generate-changelog.yml
@@ -154,13 +154,10 @@ jobs:
fi
- name: Commit CHANGELOG.md
- env:
- CURRENT_TAG: ${{ inputs.tag }}
- BRANCH: ${{ inputs.branch }}
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- git add CHANGELOG.md
- git diff --staged --quiet || git commit -m "chore: update CHANGELOG for $CURRENT_TAG"
- git push origin $BRANCH
+ if: inputs.branch != 'prod'
+ uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3
+ with:
+ branch: ${{ inputs.branch }}
+ commit_message: 'chore: update CHANGELOG for ${{ inputs.tag }}'
+ file_pattern: |
+ CHANGELOG.md