Skip to content

Commit

Permalink
chore: Add release-plz schema action run
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Mar 1, 2024
1 parent 8fb03c3 commit 10c7a58
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,6 +29,7 @@ jobs:
- 'homestar-runtime/src/**'
- 'homestar-schemas/src/**'
- 'homestar-workflow/src/**'
- 'Cargo.toml'
schemas:
needs: changes
Expand Down Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down

0 comments on commit 10c7a58

Please sign in to comment.