Skip to content

Commit

Permalink
Remove commit step
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Sep 27, 2023
1 parent 2fce1b1 commit 5639434
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
any: ${{ steps.changes.outputs.any }}
programs: ${{ steps.changes.outputs.programs }}
program_matrix: ${{ steps.program_matrix.outputs.matrix }}
js_client: ${{ steps.changes.outputs.js_client }}
rust_client: ${{ steps.changes.outputs.rust_client }}
steps:
- name: Git checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -59,12 +61,6 @@ jobs:
if: ${{ needs.changes.outputs.any == 'true' }}
needs: build_programs
runs-on: ubuntu-latest
outputs:
js_changed: ${{ steps.changes.outputs.js_client }}
rust_changed: ${{ steps.changes.outputs.rust_client }}
permissions:
contents: write
pull-requests: write
steps:
- name: Git checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -106,33 +102,25 @@ jobs:
- name: Generate IDLs and clients
run: pnpm generate

- name: Commit generated clients
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update generated clients

- name: Detect client changes
uses: dorny/paths-filter@v2
id: changes
with:
filters: .github/file-filters.yml
- name: Ensure working directory is clean
run: test -z "$(git status --porcelain)"

test_js:
if: needs.generate_clients.outputs.js_changed == 'true'
if: needs.changes.outputs.js_client == 'true'
name: JS Client
needs: generate_clients
uses: ./.github/workflows/test-js-client.yml
secrets: inherit

build_rust_client:
if: needs.generate_clients.outputs.rust_changed == 'true'
if: needs.changes.outputs.rust_client == 'true'
name: Rust Client
needs: generate_clients
uses: ./.github/workflows/build-rust-client.yml
secrets: inherit

test_rust_client:
if: needs.generate_clients.outputs.rust_changed == 'true'
if: needs.changes.outputs.rust_client == 'true'
name: Rust Client
needs: generate_clients
uses: ./.github/workflows/test-rust-client.yml
Expand Down

0 comments on commit 5639434

Please sign in to comment.