From 5d08a028b9f6a14bef0b9447a941057a9e7925c3 Mon Sep 17 00:00:00 2001 From: Edward Hesketh Date: Sun, 13 Oct 2024 00:02:59 +0100 Subject: [PATCH] ci: autorelease patch version per commit --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 998c254..ae04402 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,8 @@ name: Draft release on: + push: + branches: + - master workflow_dispatch: inputs: bump: @@ -45,6 +48,11 @@ jobs: env: VERSION: ${{github.event.after}} steps: + - name: Set bump amount + id: bump + run: | + BUMP_INPUT=${{ github.event.inputs.bump }} + echo "::set-output bump=value::${BUMP_INPUT:-"patch"}" - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 with: fetch-depth: '0' @@ -55,7 +63,7 @@ jobs: id: tag env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DEFAULT_BUMP: ${{ github.event.inputs.bump }} + DEFAULT_BUMP: ${{ steps.bump.outputs.bump }} WITH_V: true - run: gh release create ${{steps.tag.outputs.new_tag}} --generate-notes libsquirrel.a env: