fix(release): skip opposite platform push builds
This commit is contained in:
@@ -29,9 +29,16 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
name: Build Android apk for device
|
||||
if: github.secret_source != 'None' && (github.event_name != 'push' || github.ref != 'refs/heads/mobile-main' || !contains(github.event.head_commit.message || '', 'release(mobile):'))
|
||||
if: >-
|
||||
github.secret_source != 'None' &&
|
||||
(
|
||||
github.event_name != 'push' ||
|
||||
!(
|
||||
(github.ref == 'refs/heads/mobile-main' && contains(github.event.head_commit.message || '', 'release(mobile):')) ||
|
||||
(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message || '', 'release(desktop):'))
|
||||
)
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 🧹 Claim disk space
|
||||
run: |
|
||||
|
||||
@@ -39,7 +39,15 @@ env:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: github.secret_source != 'None' && (github.event_name != 'push' || github.ref != 'refs/heads/main' || !contains(github.event.head_commit.message || '', 'release(desktop):'))
|
||||
if: >-
|
||||
github.secret_source != 'None' &&
|
||||
(
|
||||
github.event_name != 'push' ||
|
||||
!(
|
||||
(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message || '', 'release(desktop):')) ||
|
||||
(github.ref == 'refs/heads/mobile-main' && contains(github.event.head_commit.message || '', 'release(mobile):'))
|
||||
)
|
||||
)
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
PROD: ${{ github.event.inputs.tag_version == 'true' || github.ref_type == 'tag' || github.event.inputs.store == 'true' }}
|
||||
|
||||
@@ -23,7 +23,15 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
check-runner:
|
||||
if: github.secret_source != 'None' && (github.event_name != 'push' || github.ref != 'refs/heads/mobile-main' || !contains(github.event.head_commit.message || '', 'release(mobile):'))
|
||||
if: >-
|
||||
github.secret_source != 'None' &&
|
||||
(
|
||||
github.event_name != 'push' ||
|
||||
!(
|
||||
(github.ref == 'refs/heads/mobile-main' && contains(github.event.head_commit.message || '', 'release(mobile):')) ||
|
||||
(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message || '', 'release(desktop):'))
|
||||
)
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
runner-label: ${{ steps.set-runner.outputs.runner-label }}
|
||||
|
||||
Reference in New Issue
Block a user