fix: skip confirmation

This commit is contained in:
rvcas 2025-02-21 13:16:41 -05:00 committed by Lucas
parent 216c5c31ec
commit fb0e2b61ff
1 changed files with 8 additions and 8 deletions

View File

@ -4,9 +4,9 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
bump: bump:
description: 'Version bump type (major, minor, patch)' description: "Version bump type (major, minor, patch)"
required: true required: true
default: 'patch' default: "patch"
type: choice type: choice
options: options:
- major - major
@ -16,26 +16,26 @@ on:
jobs: jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Rust - name: Set up Rust
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
- name: Install cargo-release - name: Install cargo-release
run: cargo install cargo-release run: cargo install cargo-release
- name: Configure Git - name: Configure Git
run: | run: |
git config --global user.name "GitHub Action" git config --global user.name "GitHub Action"
git config --global user.email "action@github.com" git config --global user.email "action@github.com"
- name: Run cargo release - name: Run cargo release
env: env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }}
run: | run: |
cargo release ${{ github.event.inputs.bump }} --execute cargo release ${{ github.event.inputs.bump }} --execute --no-confirm