Skip to content

Commit

Permalink
ci: more debugging (#14550)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthart authored Jul 23, 2024
1 parent af5b756 commit ea3eb6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-runner-untrusted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# `ref` of the pull request, so downstream jobs know what to checkout.
environment: 'external'
name: Require Approval for External PRs
if: ${{ github.event.pull_request.author_association != 'MEMBER' }}
if: ${{ github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'COLLABORATOR' }}
runs-on: ubuntu-latest
outputs:
checkout-sha: ${{ steps.save-pull-request.outputs.sha }}
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
steps:
- name: debug_steps
id: debug-steps
run: >
echo "event=${{ github.event_name }}; assoc=${{ github.event.pull_request.author_association }}"
run: |
echo "event=${{ github.event_name }}"
echo "assoc=${{ github.event.pull_request.author_association }}"
echo "org=${{ github.organization }}" || true
echo "user=${{ github.event.pull_request.user }}" || true
echo "user_orgs=${{ github.event.pull_request.user.organizations_url }}" || true
pre-flight:
# Save the `ref` of the pull request, so downstream jobs know what to checkout.
Expand All @@ -50,7 +54,8 @@ jobs:
needs: [debug]
if: >-
${{
(github.event.pull_request.author_association == 'MEMBER' &&
((github.event.pull_request.author_association == 'MEMBER' ||
github.event.pull_request.author_association == 'COLLABORATOR') &&
github.event_name == 'pull_request_target') ||
github.event_name == 'push' ||
github.event_name == 'schedule'
Expand Down

0 comments on commit ea3eb6e

Please sign in to comment.