diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index b70e6029a..a1b78482f 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -4,6 +4,8 @@ on: [pull_request] jobs: build: + # Don't run for forks as secrets are unavailable. + if: github.repository == 'vector-im/element-x-ios' runs-on: ubuntu-latest name: Danger steps: diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index 0e2a7c0c0..8ad9ed741 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -9,21 +9,9 @@ on: workflow_dispatch: jobs: - check-secret: - runs-on: macos-12 - 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_PASSWORD }} - if: "${{ env.P12_KEY != '' || env.P12_PASSWORD_KEY != '' }}" - run: echo "::set-output name=defined::true" build: - # Run job if secrets are available (not available for forks). - needs: [check-secret] - if: needs.check-secret.outputs.out-key == 'true' + # Don't run for forks as secrets are unavailable. + if: github.repository == 'vector-im/element-x-ios' name: Release runs-on: macos-12