fix create-release workflow

This commit is contained in:
Guillem Castro 2024-05-13 23:24:40 +02:00
parent 211fe59beb
commit 61d6268524

View file

@ -20,23 +20,20 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Bump version - name: Bump version
id: cargo-bump
uses: tj-actions/cargo-bump@v3 uses: tj-actions/cargo-bump@v3
with: with:
release_type: ${{ github.event.inputs.release_type }} release_type: ${{ github.event.inputs.release_type }}
- name: Commit changes - name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: "Bump version to v${{ steps.bump-version.outputs.new_version }}" commit_message: "Bump version to v${{ steps.cargo-bump.outputs.new_version }}"
commit_user_name: "github-actions[bot]" commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com" commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
branch: master branch: master
create-tag:
runs-on: ubuntu-latest
needs: bump-version
steps:
- name: Create tag - name: Create tag
uses: rickstaa/action-create-tag@v1 uses: rickstaa/action-create-tag@v1
with: with:
tag: v${{ steps.bump-version.outputs.new_version }} tag: v${{ steps.cargo-bump.outputs.new_version }}
message: "Bump version to v${{ steps.bump-version.outputs.new_version }}" message: "Bump version to v${{ steps.cargo-bump.outputs.new_version }}"