From 7e4ca524da2179e506bfce07cb0722724493ef9f Mon Sep 17 00:00:00 2001 From: Oscaner Miao Date: Thu, 8 Jan 2026 13:51:48 +0800 Subject: [PATCH] fix: remove conditional for release creation and add automatic PR to main --- .github/workflows/build.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad28e86..b4ac920 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,6 @@ jobs: .build/apple/Products/Release/wallpapper-exif - name: Create Release - if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: files: | @@ -32,3 +31,21 @@ jobs: generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Pull Request to main + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }} + branch: release + base: main + title: "chore: sync release ${{ github.ref_name }} back to main" + body: | + Automatically created PR to sync release branch back to main after creating release ${{ github.ref_name }}. + + This PR includes: + - Version bump to ${{ github.ref_name }} + - Any release-specific changes + labels: | + automated + release + draft: false