From 7286f60cd2e2f8994f9432a2d51c0ca5fa4c3a32 Mon Sep 17 00:00:00 2001 From: Brian Ginsburg Date: Mon, 4 Mar 2024 13:33:14 -0800 Subject: [PATCH] chore: Run release-plz on version changes only --- .github/workflows/schemas.yml | 23 +++++++++++++++++-- .../src/task/instruction/nonce.rs | 2 +- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/schemas.yml b/.github/workflows/schemas.yml index 8f3e48dd..0fa8042b 100644 --- a/.github/workflows/schemas.yml +++ b/.github/workflows/schemas.yml @@ -2,7 +2,8 @@ name: 📄 Schemas on: push: - branches: [main, "release-plz-*"] + branches: [main, "bgins/run-schemas-*"] + # branches: [main, "release-plz-*"] # branches: [main, "**"] permissions: @@ -68,8 +69,26 @@ jobs: shell: bash run: echo modified=$(if [[ $(git diff Cargo.toml) ]]; then echo "true"; else echo "false"; fi) >> $GITHUB_OUTPUT + - name: Echo results + run: | + echo Manifest version updated: + echo ${{ steps.git-check-manifest.outputs.modified }} + echo Schemas updated: + echo ${{ steps.git-check-schemas.outputs.modified }} + echo Branch starts with bgins/run-schemas: + echo ${{ startsWith(github.ref_name, 'bgins/run-schemas') }} + echo Check main condition: + echo ${{ (github.ref_name == 'main' && (steps.git-check-schemas.outputs.modified == 'true' || steps.git-check-manifest.outputs.modified == 'true')) }} + echo Check branch condition: + echo ${{ (startsWith(github.ref_name, 'bgins/run-schemas') && steps.git-check-manifest.outputs.modified == 'true') }} + - name: Push changes - if: ${{ steps.git-check-schemas.outputs.modified == 'true' || steps.git-check-manifest.outputs.modified == 'true' }} + # if: ${{ steps.git-check-schemas.outputs.modified == 'true' || steps.git-check-manifest.outputs.modified == 'true' }} + # (github.ref_name == 'bgins/run-schemas-*' && steps.git-check-manifest.outputs.modified == 'true') + if: | + ${{ (github.ref_name == 'main' && (steps.git-check-schemas.outputs.modified == 'true' || steps.git-check-manifest.outputs.modified == 'true')) || + (startsWith(github.ref_name, 'bgins/run-schemas') && steps.git-check-manifest.outputs.modified == 'true') + }} run: | git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" diff --git a/homestar-invocation/src/task/instruction/nonce.rs b/homestar-invocation/src/task/instruction/nonce.rs index a821a111..3b7fcf3d 100644 --- a/homestar-invocation/src/task/instruction/nonce.rs +++ b/homestar-invocation/src/task/instruction/nonce.rs @@ -108,7 +108,7 @@ impl JsonSchema for Nonce { instance_type: Some(SingleOrVec::Single(InstanceType::String.into())), metadata: Some(Box::new(Metadata { description: Some( - "A 12-byte or 16-byte nonce. Use empty string for no nonce.".to_string(), + "A 12-byte or 16-byte nonc. Use empty string for no nonce.".to_string(), ), ..Default::default() })),