mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-12 17:20:23 +00:00
Merge pull request #2868 from signalwire/gha-copy-job
[GHA] Simplify `if` in UPLOAD_BUILD_ARTIFACTS
This commit is contained in:
commit
ac9b8c621b
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -154,14 +154,12 @@ jobs:
|
|||||||
TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-public-${{ matrix.release }}-artifact
|
TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-public-${{ matrix.release }}-artifact
|
||||||
UPLOAD_BUILD_ARTIFACTS: >-
|
UPLOAD_BUILD_ARTIFACTS: >-
|
||||||
${{
|
${{
|
||||||
(github.event.pull_request.head.repo.full_name == github.repository) &&
|
|
||||||
(
|
(
|
||||||
(
|
github.event_name == 'push' &&
|
||||||
github.event_name != 'pull_request' &&
|
github.repository == 'signalwire/freeswitch' &&
|
||||||
github.event_name != 'workflow_dispatch'
|
contains(fromJSON('["master", "v1.10"]'), github.ref_name)
|
||||||
) ||
|
) ||
|
||||||
(github.event_name == 'workflow_dispatch' && inputs.publish)
|
(github.event_name == 'workflow_dispatch' && inputs.publish)
|
||||||
)
|
|
||||||
}}
|
}}
|
||||||
secrets:
|
secrets:
|
||||||
GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}
|
GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user