diff --git a/.github/workflows/bump-request.yml b/.github/workflows/bump-request.yml new file mode 100644 index 0000000..cd5f9be --- /dev/null +++ b/.github/workflows/bump-request.yml @@ -0,0 +1,20 @@ +name: bump-request + +on: + workflow_dispatch: + inputs: + version: + description: Version to change to. + required: true + type: string + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: r7kamura/bump-request@v0 + with: + command: | + sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' VERSION + version: ${{ inputs.version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54ac663..a4f5b31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,10 +2,9 @@ name: release on: push: - tags: - - "v*.*.*" - workflow_dispatch: + branches: + - main jobs: release: - uses: r7kamura/workflows/.github/workflows/release-action.yml@main + uses: r7kamura/workflows/.github/workflows/release-action-with-version.yml@main diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..c5523bd --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.17.0