Skip to content

use if check when forcing new version #25

use if check when forcing new version

use if check when forcing new version #25

Workflow file for this run

name: Release
on:
workflow_dispatch:
workflow_call:
push:
branches:
- test-tagging-bert
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
dry-run: true
check-repo: false
no-verify: true
ignore-unpublished-changes: true
id: publish-crates
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
- name: Tag versions
if: fromJSON(steps.publish-crates.outputs.published).*
run: |
echo "Tagging versions"
echo "published: ${{ steps.publish-crates.outputs.published }}"
echo "conclusion: ${{ steps.publish-crates.conclusion }}"
echo "outcome: ${{ steps.publish-crates.outcome }}"