diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index c0d792b1..b6657b22 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -51,16 +51,28 @@ jobs: echo " Target Exists: ${{ env.TARGET_BRANCH_EXISTS }}" - name: Create version branch from master # ref.: https://github.com/peterjgrainger/action-create-branch, v3.0.0 - uses: peterjgrainger/action-create-branch@10c7d268152480ae859347db45dc69086cef1d9c + # uses: peterjgrainger/action-create-branch@10c7d268152480ae859347db45dc69086cef1d9c + # if: | + # ( env.TARGET_BRANCH_EXISTS == false || env.TARGET_BRANCH_EXISTS == 'false' ) && + # ( env.RELEASE_EXISTS == false || env.RELEASE_EXISTS == 'false' ) && + # ( startsWith(env.RELEASE_BRANCH, 'release/v') && contains(env.RELEASE_BRANCH, '.') ) + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # branch: ${{ env.RELEASE_BRANCH }} + # sha: ${{ env.MASTER_REF }} if: | - ( env.TARGET_BRANCH_EXISTS == false || env.TARGET_BRANCH_EXISTS == 'false' ) && - ( env.RELEASE_EXISTS == false || env.RELEASE_EXISTS == 'false' ) && - ( startsWith(env.RELEASE_BRANCH, 'release/v') && contains(env.RELEASE_BRANCH, '.') ) + ( env.TARGET_BRANCH_EXISTS == 'false' ) && + ( env.RELEASE_EXISTS == 'false' ) && + startsWith(env.RELEASE_BRANCH, 'release/v') && + contains(env.RELEASE_BRANCH, '.') + run: | + git fetch origin ${{ github.event.repository.default_branch }} + git checkout -b ${{ env.RELEASE_BRANCH }} origin/${{ github.event.repository.default_branch }} + git push https://x-access-token:${{ secrets.REPO_ACCESS }}@github.com/KiraCore/${{ github.event.repository.name }} ${{ env.RELEASE_BRANCH }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - branch: ${{ env.RELEASE_BRANCH }} - sha: ${{ env.MASTER_REF }} + RELEASE_BRANCH: ${{ env.RELEASE_BRANCH }} + GITHUB_TOKEN: ${{ secrets.REPO_ACCESS }} - name: Create PR from feature to version branch # ref. repo-sync/pull-request is broken, using cea2aj/pull-request instead # TODO: cea2aj/pull-request abondoned, we need to switch back to peter-evans/create-pull-request diff --git a/types/constants.go b/types/constants.go index 4408c6f6..2d2e3763 100644 --- a/types/constants.go +++ b/types/constants.go @@ -3,6 +3,6 @@ const ( // we set page iteration limit for safety PageIterationLimit = 512 - SekaiVersion = "v0.4.8" + SekaiVersion = "v0.4.10" CosmosVersion = "v0.47.6" )