From dbcf85c50cf5c2aa86183a5ccc979efa36d4df26 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 13 Jul 2025 11:52:42 +1000 Subject: [PATCH] Add repository guard - only push commits on main wailsapp/wails repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/changelog-v3.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog-v3.yml b/.github/workflows/changelog-v3.yml index dc8bdb684..838b8897a 100644 --- a/.github/workflows/changelog-v3.yml +++ b/.github/workflows/changelog-v3.yml @@ -121,11 +121,11 @@ jobs: git add docs/src/content/docs/changelog.mdx git commit -m "🤖 Fix changelog: move entries to Unreleased section" - # Push to the correct PR branch - if [ "$REPO_OWNER" = "wailsapp" ]; then + # Only push if running on the main wailsapp repository + if [ "${{ github.repository }}" = "wailsapp/wails" ]; then git push origin HEAD:$BRANCH_NAME else - echo "⚠️ Cannot push to forked repository. Manual fix required." + echo "⚠️ Running on fork (${{ github.repository }}). Skipping push - manual fix required." echo "committed=false" >> $GITHUB_OUTPUT exit 0 fi