From 44c8f5e2d2896f064c38c7184a3738b18e5c8cc7 Mon Sep 17 00:00:00 2001 From: Fernando Otero Date: Wed, 27 Sep 2023 21:41:20 +0100 Subject: [PATCH] Remove commit step (#42) * Remove commit step * Remove token --- .github/workflows/main.yml | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a576f85c..8a693ec9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -59,17 +61,9 @@ 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 - with: - token: ${{ secrets.SVC_TOKEN }} - name: Load environment variables run: cat .github/.env >> $GITHUB_ENV @@ -106,33 +100,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