Skip to content

Commit

Permalink
chore: More schema action tinkering part three
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Feb 8, 2024
1 parent 05545ab commit 91898b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: 📄 Schemas

on:
push:
# branches: [main, "**"]
branches: [main]
branches: [main, "**"]

pull_request:
branches: ["**"]
# pull_request:
# branches: ["**"]

permissions:
contents: write
Expand All @@ -27,13 +26,10 @@ jobs:
with:
filters: |
rust:
- '**/Cargo.*'
- '**/src/**'
- '**/tests/**'
- '**/build.rs'
- '**/migrations/**'
- '**/fixtures/**'
- '**/wit/**'
- 'homestar-invocation/src/**'
- 'homestar-runtime/src/**'
- 'homestar-schemas/src/**'
- 'homestar-workflow/src/**'
schemas:
needs: changes
Expand Down Expand Up @@ -91,4 +87,5 @@ jobs:
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git commit -am "chore(schemas): update OpenRPC API doc and JSON schemas"
git push --force-with-lease origin HEAD:refs/heads/${{ github.ref }}
# git push --force-with-lease origin HEAD:refs/heads/${{ github.ref }}
git push
2 changes: 1 addition & 1 deletion 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 homestar-schemas/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "homestar-schemas"
publish = false
version = { workspace = true }
version = "0.1.0"
edition = { workspace = true }
rust-version = { workspace = true }

Expand Down

0 comments on commit 91898b3

Please sign in to comment.