From 97138e24de0ab33c7cc0aaa8180542ef719311c7 Mon Sep 17 00:00:00 2001 From: CLARATION Date: Sun, 26 Jul 2026 19:24:41 -0700 Subject: [PATCH] feat(ci): auto bump palen1x --- .github/workflows/build.yml | 6 +++--- .github/workflows/repo-upload.yml | 23 +++++++++++++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa29366..ebac6c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -313,7 +313,7 @@ jobs: - name: Package run: | - cd build + cd build cpack -DCPACK_PACKAGE_FILE_NAME="palera1n-iphoneos-arm" \ -DCPACK_PACKAGING_INSTALL_PREFIX="/usr/" cpack -DCPACK_PACKAGE_FILE_NAME="palera1n-iphoneos-arm64" \ @@ -534,8 +534,8 @@ jobs: - name: Create Release uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 with: - name: v${{ steps.get_version.outputs.version }} - tag_name: v${{ steps.get_version.outputs.version }} + name: ${{ steps.get_version.outputs.version }} + tag_name: ${{ steps.get_version.outputs.version }} files: | dist/* generate_release_notes: true diff --git a/.github/workflows/repo-upload.yml b/.github/workflows/repo-upload.yml index 9c65d44..0ce475f 100644 --- a/.github/workflows/repo-upload.yml +++ b/.github/workflows/repo-upload.yml @@ -21,7 +21,7 @@ jobs: - name: Download debs from tag env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ env.GITHUB_TOKEN }} run: | gh release download "${{ env.TAG }}" --pattern "palera1n-iphoneos-arm*.deb" @@ -46,9 +46,28 @@ jobs: cd upload - git config user.name "github-actions[bot]" + git config user.name "$USERNAME" git config user.email "actions@github.com" git add . git commit -m "Update palera1n for ${{ env.TAG }}" || exit 0 git push https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git + + - name: Bump palen1x + if: github.repository == 'palera1n/palera1n' + env: + USERNAME: GitHub-Actions + API_TOKEN: ${{ secrets.BUILD_GITHUB_TOKEN }} + GH_REPO: palera1n/palen1x + run: | + git clone https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git tag + cd tag + + git config --global user.name "$USERNAME" + git config --global user.email "actions@github.com" + + git commit --allow-empty -m "bump to ${{ env.TAG }}" + git push https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git Alpine + + git tag "${{ env.TAG }}" + git push https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git "${{ env.TAG }}"