Skip to content

Commit

Permalink
Moved the check into the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
goergisn authored Jan 2, 2025
1 parent 0b1a76d commit fda1dba
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/detect_api_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Exit if fork PR
run: |
# Disabling this check from PRs of forked repositories because of insufficient access permissions
if [[ "${{ env.headGithubRepo }}" != "${{ env.baseGithubRepo }}" ]]; then
echo "The head repository is different from the base repository. Exiting..."
exit 0
fi
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
Expand All @@ -42,6 +34,12 @@ jobs:

- name: 👾 Define Diff Versions
run: |
# Disabling this check from PRs of forked repositories because of insufficient access permissions
if [[ "${{ env.headGithubRepo }}" != "${{ env.baseGithubRepo }}" ]]; then
echo "The head repository is different from the base repository. Exiting..."
exit 0
fi
NEW="${{ env.source }}~${{ env.headGithubRepo }}"
OLD="${{ env.target }}~${{ env.baseGithubRepo }}"
Expand Down

0 comments on commit fda1dba

Please sign in to comment.