diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d27c070 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Push to GCR Github Action +on: + release: + types: [published] + +jobs: + update-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Bumpversion release version. + uses: tj-actions/bumpversion@v0.1a + id: bumpversion + with: + paths: | + README.md + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v3 + with: + commit-message: Update from ${{ steps.bumpversion.outputs.old_version }} -> ${{ steps.bumpversion.outputs.new_version }} + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + branch: bump-to-${{ steps.bumpversion.outputs.new_version }} + title: '[Upgrade] New Release ${{ steps.bumpversion.outputs.new_version }}' + body: | + Auto-generated by [create-pull-request][1] + + [1]: https://github.com/peter-evans/create-pull-request + labels: | + upgrade + automated pr + assignees: jackton1 + reviewers: jackton1 + draft: false