From f1cc43204ca9a057beab92852ac4dfeceee560c2 Mon Sep 17 00:00:00 2001 From: Tyler Thompson Date: Tue, 27 Apr 2021 17:37:47 -0600 Subject: [PATCH] [master] - Only run the release if we are in the correct repo, forks should not be able to deploy the pod - TT --- .github/workflows/release.yml | 1 + .github/workflows/trunk.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 55e807c27..7aff8786a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: jobs: release: runs-on: macos-latest + if: ${{ github.repository == 'Tyler-Keith-Thompson/Workflow' }} steps: - uses: actions/checkout@v2 - name: Cocoapods Release diff --git a/.github/workflows/trunk.yml b/.github/workflows/trunk.yml index 1743f8679..165ad62c1 100644 --- a/.github/workflows/trunk.yml +++ b/.github/workflows/trunk.yml @@ -10,7 +10,7 @@ on: jobs: version_bump: runs-on: macos-latest - if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == ‘Tyler-Keith-Thompson/Workflow’ }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v2 with: