Skip to content

feat: add with_default_roles to Client, Query, Insert{er} #30

feat: add with_default_roles to Client, Query, Insert{er}

feat: add with_default_roles to Client, Query, Insert{er} #30

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 41, Col: 14): Unrecognized named-value: 'if'. Located at position 1 within expression: if eq(github.event.inputs.dry-run, 'false') then '--execute' else '' end
on:
workflow_dispatch:
inputs:
dry-run:
description: 'Dry run (do not publish to crates.io)'
required: true
default: 'true'
level:
description: 'Release level'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
RUST_BACKTRACE: 1
jobs:
release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: rustup show active-toolchain -v
- name: Install cargo-release
run: cargo install cargo-release
- name: Release
run: |
cargo release ${{ github.event.inputs.level }} ${{
if eq(github.event.inputs.dry-run, 'false')
then '--execute'
else ''
end
}}