Skip to content

Commit

Permalink
add pr validate fork
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverMKing authored Sep 19, 2023
1 parent 901343e commit bf7e10d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/pr-validate-fork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,21 @@ jobs:
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge'
skipRefCheck: false
secrets: inherit
e2eV2:
if:
github.event_name == 'repository_dispatch' &&
github.event.client_payload.slash_command.args.named.sha != '' &&
contains(github.event.client_payload.pull_request.head.sha, github.event.client_payload.slash_command.args.named.sha)
uses: ./.github/workflows/e2ev2.yaml
secrets: inherit
with:
ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge'
skipRefCheck: false
status:
permissions:
checks: write
pull-requests: read
needs: [e2e]
needs: [e2e, e2eV2]
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
Expand Down

0 comments on commit bf7e10d

Please sign in to comment.