Skip to content

Commit

Permalink
chore: Run release-plz on version changes only
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Mar 4, 2024
1 parent 8d73246 commit 7286f60
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: 📄 Schemas

on:
push:
branches: [main, "release-plz-*"]
branches: [main, "bgins/run-schemas-*"]
# branches: [main, "release-plz-*"]
# branches: [main, "**"]

permissions:
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion homestar-invocation/src/task/instruction/nonce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})),
Expand Down

0 comments on commit 7286f60

Please sign in to comment.