From 10c7a582214ba2a5f59f9f7cd15326ae8dadd5a5 Mon Sep 17 00:00:00 2001 From: Brian Ginsburg Date: Thu, 29 Feb 2024 15:11:42 -0800 Subject: [PATCH] chore: Add release-plz schema action run --- .github/workflows/schemas.yml | 16 +++++++++++++--- Cargo.lock | 10 +++++----- Cargo.toml | 2 +- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/schemas.yml b/.github/workflows/schemas.yml index bd93ea7f..abb2666b 100644 --- a/.github/workflows/schemas.yml +++ b/.github/workflows/schemas.yml @@ -2,9 +2,12 @@ name: 📄 Schemas on: push: - branches: [main] + branches: [main, "bgins/run-schemas-*"] # branches: [main, "**"] + # pull_request: + # branches: ["bgins/run-schemas-*"] + permissions: contents: write pull-requests: write @@ -26,6 +29,7 @@ jobs: - 'homestar-runtime/src/**' - 'homestar-schemas/src/**' - 'homestar-workflow/src/**' + - 'Cargo.toml' schemas: needs: changes @@ -58,12 +62,18 @@ jobs: run: cargo run -p homestar-schemas - name: Check for modified schemas - id: git-check + id: git-check-schemas shell: bash run: echo modified=$(if [[ $(git diff homestar-runtime/schemas/) ]]; then echo "true"; else echo "false"; fi) >> $GITHUB_OUTPUT + - name: Check for updated version + id: git-check-manifest + shell: bash + run: echo modified=$(if [[ $(git diff Cargo.toml) ]]; then echo "true"; else echo "false"; fi) >> $GITHUB_OUTPUT + - name: Push changes - if: steps.git-check.outputs.modified == 'true' + # if: steps.git-check.outputs.modified == 'true' + if: ${{ steps.git-check-schemas.outputs.modified == 'true' || 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/Cargo.lock b/Cargo.lock index e34288eb..fd789165 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2523,7 +2523,7 @@ dependencies = [ [[package]] name = "homestar-invocation" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "async-recursion", @@ -2552,7 +2552,7 @@ dependencies = [ [[package]] name = "homestar-runtime" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "assert_cmd", @@ -2667,7 +2667,7 @@ dependencies = [ [[package]] name = "homestar-schemas" -version = "0.2.0" +version = "0.2.1" dependencies = [ "homestar-invocation", "homestar-runtime", @@ -2680,7 +2680,7 @@ dependencies = [ [[package]] name = "homestar-wasm" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "async-trait", @@ -2708,7 +2708,7 @@ dependencies = [ [[package]] name = "homestar-workflow" -version = "0.2.0" +version = "0.2.1" dependencies = [ "fxhash", "homestar-invocation", diff --git a/Cargo.toml b/Cargo.toml index d243f730..695b96b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ edition = "2021" license = "Apache-2.0" repository = "https://github.com/ipvm-wg/homestar" rust-version = "1.75.0" -version = "0.2.0" +version = "0.2.1" [workspace.dependencies] anyhow = { version = "1.0", features = ["backtrace"] }