From aa090008cf251e20f9ea2b443520e8999ee13653 Mon Sep 17 00:00:00 2001 From: layue13 Date: Wed, 4 Nov 2026 14:56:26 +0000 Subject: [PATCH] ci: apply standard v1 (concurrency + permissions + cache policy) --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db45e8c..582eebc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,9 +18,12 @@ on: required: false default: 'false' +permissions: + contents: read + concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} # Organisation-wide Stratum settings (registry, group, runner routes) are organisation variables. env: @@ -49,6 +52,7 @@ jobs: - uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb with: cache-provider: basic + cache-disabled: "${{ github.server_url != 'https://github.com' }}" - name: Build env: @@ -83,6 +87,7 @@ jobs: - uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb with: cache-provider: basic + cache-disabled: "${{ github.server_url != 'https://github.com' }}" - name: Check the publish credentials run: |