ci: scope github release workflows

This commit is contained in:
Daniel 2026-05-10 18:07:52 +02:00
parent 52544e9116
commit f01ca5a094
5 changed files with 6 additions and 1 deletions

View file

@ -21,6 +21,7 @@ permissions:
jobs:
build:
if: ${{ github.server_url == 'https://github.com' }}
name: Build signed APK
runs-on: ubuntu-latest
steps:

View file

@ -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

View file

@ -14,6 +14,7 @@ env:
jobs:
build-apk:
if: ${{ github.server_url == 'https://github.com' }}
runs-on: ubuntu-latest
permissions:
contents: write

View file

@ -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

View file

@ -30,6 +30,7 @@ permissions:
jobs:
bump:
if: ${{ github.server_url == 'https://github.com' }}
runs-on: ubuntu-latest
steps:
- name: Checkout