Skip to content

Commit

Permalink
chore: More schemas action tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Feb 8, 2024
1 parent 873b417 commit 4d4ae92
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,34 @@ permissions:
pull-requests: write

jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
rust: ${{ steps.filter.outputs.rust }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
rust:
- '**/Cargo.*'
- '**/src/**'
- '**/tests/**'
- '**/build.rs'
- '**/migrations/**'
- '**/fixtures/**'
- '**/wit/**'
schemas:
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -21,6 +48,22 @@ jobs:
fetch-depth: 0
token: ${{ secrets.HOMESTAR_UPDATE_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
examples:
- 'examples/**'
rust:
- '**/Cargo.*'
- '**/src/**'
- '**/tests/**'
- '**/build.rs'
- '**/migrations/**'
- '**/fixtures/**'
- '**/wit/**'
deny:
- 'deny.toml'
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit 4d4ae92

Please sign in to comment.