From a05ed7ba0fedc2705d75eb8bda6aac70a258e998 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 08:02:45 +0000 Subject: [PATCH 1/2] Bump peter-evans/create-pull-request in the github-actions group Bumps the github-actions group with 1 update: [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request). Updates `peter-evans/create-pull-request` from 6.0.2 to 6.0.5 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v6.0.2...v6.0.5) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/automatic-api-update.yaml | 2 +- .github/workflows/manual-api-update.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automatic-api-update.yaml b/.github/workflows/automatic-api-update.yaml index 8e666f1..f32609a 100644 --- a/.github/workflows/automatic-api-update.yaml +++ b/.github/workflows/automatic-api-update.yaml @@ -51,7 +51,7 @@ jobs: run: | ./buf.gen.yaml - name: Create Pull Request - uses: peter-evans/create-pull-request@v6.0.2 + uses: peter-evans/create-pull-request@v6.0.5 if: steps.buf-update.outputs.updated == 'true' with: delete-branch: "true" diff --git a/.github/workflows/manual-api-update.yaml b/.github/workflows/manual-api-update.yaml index 2403e78..498c093 100644 --- a/.github/workflows/manual-api-update.yaml +++ b/.github/workflows/manual-api-update.yaml @@ -55,7 +55,7 @@ jobs: run: | ./buf.gen.yaml - name: Create Pull Request - uses: peter-evans/create-pull-request@v6.0.2 + uses: peter-evans/create-pull-request@v6.0.5 if: steps.buf-update.outputs.updated == 'true' with: delete-branch: "true" From a3c2fc70b51ef1794ac5fbe65ac8d9cfc4c6f9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Thu, 2 May 2024 10:56:00 +0100 Subject: [PATCH 2/2] improve build skip when no source changes --- .github/workflows/authzed-node.yaml | 39 ++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/.github/workflows/authzed-node.yaml b/.github/workflows/authzed-node.yaml index 60a7d45..d39b893 100644 --- a/.github/workflows/authzed-node.yaml +++ b/.github/workflows/authzed-node.yaml @@ -1,29 +1,41 @@ name: authzed-node-ci on: + push: + branches: + - "main" pull_request: branches: - "*" - paths: - - src/** - - package.json - - .github/workflows/authzed-node.yaml - push: - branches: - - main - paths: - - src/** - - .github/workflows/authzed-node.yaml - - package.json - - js-dist/package.json + merge_group: + types: + - "checks_requested" release: types: [published] jobs: + paths-filter: + runs-on: "buildjet-2vcpu-ubuntu-2204" + outputs: + codechange: "${{ steps.code-filter.outputs.codechange }}" + steps: + - uses: "actions/checkout@v4" + - uses: "dorny/paths-filter@v3" + id: "code-filter" + with: + filters: | + codechange: + - src/** + - .github/workflows/authzed-node.yaml + - package.json + - js-dist/package.json test: name: Lint runs-on: "buildjet-2vcpu-ubuntu-2204" strategy: matrix: node-version: [18, 20, 21] + needs: "paths-filter" + if: | + needs.paths-filter.outputs.codechange == 'true' steps: - uses: actions/checkout@v4 - uses: "authzed/action-spicedb@v1" @@ -63,6 +75,9 @@ jobs: strategy: matrix: node-version: [18, 20, 21] + needs: "paths-filter" + if: | + needs.paths-filter.outputs.codechange == 'true' steps: - uses: actions/checkout@v4 - uses: "authzed/action-spicedb@v1"