From 04127883c1944c9c2ec5a080acfeb5f38e424a5e Mon Sep 17 00:00:00 2001 From: Claudio Rodrigo Pereyra Diaz Date: Mon, 6 Jun 2022 10:57:41 -0300 Subject: [PATCH] chore: bump version when merge PR to master --- .github/workflows/bump-version.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/bump-version.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml new file mode 100644 index 0000000..4dbe22b --- /dev/null +++ b/.github/workflows/bump-version.yml @@ -0,0 +1,22 @@ +name: Bump version +on: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' }} + steps: + - uses: actions/checkout@v3 + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + generateReleaseNotes: true