From f01ca5a094a4ea1e8b59354501f61404f6c8c038 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 10 May 2026 18:07:52 +0200 Subject: [PATCH] ci: scope github release workflows --- .github/workflows/android-release.yml | 1 + .github/workflows/auto-version.yml | 2 +- .github/workflows/build-apk.yml | 1 + .github/workflows/docker-publish.yml | 2 ++ .github/workflows/version-bump.yml | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 724a547..8f21363 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -21,6 +21,7 @@ permissions: jobs: build: + if: ${{ github.server_url == 'https://github.com' }} name: Build signed APK runs-on: ubuntu-latest steps: diff --git a/.github/workflows/auto-version.yml b/.github/workflows/auto-version.yml index f2256dc..51e5238 100644 --- a/.github/workflows/auto-version.yml +++ b/.github/workflows/auto-version.yml @@ -31,7 +31,7 @@ permissions: jobs: version: runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, 'Release v') && !contains(github.event.head_commit.message, '[skip ci]')" + if: "github.server_url == 'https://github.com' && !contains(github.event.head_commit.message, 'Release v') && !contains(github.event.head_commit.message, '[skip ci]')" steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index bf0b4fa..87fc873 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -14,6 +14,7 @@ env: jobs: build-apk: + if: ${{ github.server_url == 'https://github.com' }} runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a4756a6..df027b8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -24,6 +24,7 @@ env: jobs: build: + if: ${{ github.server_url == 'https://github.com' }} # Build one variant per matrix entry, push by digest only. name: Build ${{ matrix.platform }} runs-on: ${{ matrix.runner }} @@ -80,6 +81,7 @@ jobs: retention-days: 1 merge: + if: ${{ github.server_url == 'https://github.com' }} # Combine the two single-platform digests into one multi-arch manifest # published under the real tags (vX.Y.Z and latest). name: Merge manifests diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index f988019..7a583b6 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -30,6 +30,7 @@ permissions: jobs: bump: + if: ${{ github.server_url == 'https://github.com' }} runs-on: ubuntu-latest steps: - name: Checkout