diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 573ef44b859..57a0832142e 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -2,7 +2,9 @@ name: Bump up version on: create: - branches: ['release/*.*.0'] + branches: + - 'release/*' + workflow_dispatch: permissions: contents: write @@ -11,6 +13,7 @@ permissions: jobs: bump-version: runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/heads/release/') && endsWith(github.ref, '.0') steps: - name: Check out repository @@ -42,7 +45,8 @@ jobs: env: GH_TOKEN: ${{ steps.gh-app.outputs.token }} run: | - head_branch="chore/bump-version-${{ steps.version.outputs.new_version }}" + timestamp=$(date +%s) + head_branch="chore/bump-version-${{ steps.version.outputs.new_version }}-$timestamp" git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.github.com" git checkout -b $head_branch