Skip to content

Commit

Permalink
Test with conditional based on fork header
Browse files Browse the repository at this point in the history
  • Loading branch information
TucksonDev committed Oct 11, 2023
1 parent e338f74 commit ebb5487
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check format
run-name: Checking format

on:
- pull_request_target
- pull_request

jobs:
install:
Expand Down Expand Up @@ -46,7 +46,9 @@ jobs:
echo "format-check-result=$?" >> $GITHUB_OUTPUT
- name: Output formatting error
if: steps.prettier-check.outputs.format-check-result == 1
if: |
steps.prettier-check.outputs.format-check-result == 1 &&
${{ github.event.pull_request.head.repo.full_name == 'OffchainLabs/arbitrum-docs' }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ebb5487

Please sign in to comment.