mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #5496 from vector-im/langleyd/5491_fix_CI_for_non_vector_repo_prs
Only run job if secrets are available.
This commit is contained in:
commit
579eec2103
2 changed files with 15 additions and 1 deletions
15
.github/workflows/release-alpha.yml
vendored
15
.github/workflows/release-alpha.yml
vendored
|
@ -13,8 +13,21 @@ env:
|
|||
MX_GIT_BRANCH: ${{ github.event.pull_request.head.ref }}
|
||||
|
||||
jobs:
|
||||
check-secret:
|
||||
runs-on: macos-11
|
||||
outputs:
|
||||
out-key: ${{ steps.out-key.outputs.defined }}
|
||||
steps:
|
||||
- id: out-key
|
||||
env:
|
||||
P12_KEY: ${{ secrets.ALPHA_CERTIFICATES_P12 }}
|
||||
P12_PASSWORD_KEY: ${{ secrets.ALPHA_CERTIFICATES_P12 }}
|
||||
if: "${{ env.P12_KEY != '' || env.P12_PASSWORD_KEY != '' }}"
|
||||
run: echo "::set-output name=defined::true"
|
||||
build:
|
||||
if: github.repository == 'vector-im/element-ios'
|
||||
# Run job if secrets are avilable (not avaiable for forks).
|
||||
needs: [check-secret]
|
||||
if: needs.check-secret.outputs.out-key == 'true'
|
||||
name: Release
|
||||
runs-on: macos-11
|
||||
|
||||
|
|
1
changelog.d/pr-5496.build
Normal file
1
changelog.d/pr-5496.build
Normal file
|
@ -0,0 +1 @@
|
|||
Fix CI builds for external contributors using forked repos.
|
Loading…
Reference in a new issue