diff --git a/.github/workflows/release-created.yml b/.github/workflows/create-release.yml similarity index 74% rename from .github/workflows/release-created.yml rename to .github/workflows/create-release.yml index f41c977..41bbe83 100644 --- a/.github/workflows/release-created.yml +++ b/.github/workflows/create-release.yml @@ -1,9 +1,12 @@ -name: Release created +name: Create release on: - release: - types: - - created + workflow_dispatch: + inputs: + tag: + description: 'Git tag value' + required: true + type: string env: PYTHON_VERSION: "3.11" @@ -40,11 +43,12 @@ jobs: - name: Get release version id: version - run: echo "VALUE=$(npx --yes semver ${{ github.event.release.tag_name }})" >> "$GITHUB_OUTPUT" + run: echo "VALUE=$(npx --yes semver ${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT" - name: Update project version run: | poetry version ${{ steps.version.outputs.VALUE }} git add pyproject.toml git commit -m "chore: release ${{ steps.version.outputs.VALUE }}" - git push + git tag ${{ steps.version.outputs.VALUE }} + git push origin ${{ steps.version.outputs.VALUE }}