diff --git a/.github/workflows/bump.yaml b/.github/workflows/bump.yaml index c31ca3d..7f6a380 100644 --- a/.github/workflows/bump.yaml +++ b/.github/workflows/bump.yaml @@ -24,21 +24,23 @@ jobs: else echo "::set-output name=changed::true" fi - - name: Commit version file - if: steps.version_changed.outputs.changed == 'true' - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add ./pkg/version/VERSION - git commit -m "Update version to ${{ steps.parse_version.outputs.version }}" - git push + # - name: Commit version file + # if: steps.version_changed.outputs.changed == 'true' + # run: | + # git config --global user.name 'github-actions[bot]' + # git config --global user.email 'github-actions[bot]@users.noreply.github.com' + # git add ./pkg/version/VERSION + # git commit -m "Update version to ${{ steps.parse_version.outputs.version }}" + # git push - name: Create pull request if: steps.version_changed.outputs.changed == 'true' uses: peter-evans/create-pull-request@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} commit-message: "Update version to ${{ steps.parse_version.outputs.version }}" title: "Release ${{ steps.parse_version.outputs.version }}" body: "Release version ${{ steps.parse_version.outputs.version }}" - base: main - head: release/${{ steps.parse_version.outputs.version }} + branch: "release/${{ steps.parse_version.outputs.version }}" + labels: 'release' + committer: version-release[bot] + delete-branch: true +