forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from jflo/gha_testReportPermissions
Gha test report permissions
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: acceptance-tests | ||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: | ||
- main | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
|
@@ -9,8 +11,17 @@ env: | |
total-runners: 16 | ||
|
||
jobs: | ||
authorize: | ||
environment: | ||
${{ github.event_name == 'pull_request_target' && | ||
github.event.pull_request.head.repo.full_name != github.repository && | ||
'external' || 'internal' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: true | ||
shouldRun: | ||
name: checks to ensure we should run | ||
needs: authorize | ||
# necessary because there is no single PR approved event, need to check all comments/approvals/denials | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
|
@@ -60,13 +71,15 @@ jobs: | |
steps: | ||
- name: Checkout Repo | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
- name: Set up Java | ||
uses: actions/[email protected] | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: get acceptance test report | ||
uses: dawidd6/action-download-artifact@v2 | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
branch: main | ||
name_is_regexp: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters