Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,17 @@ jobs:
needs.paths-filter.outputs.codechange == 'true' || needs.paths-filter.outputs.graphchange == 'true'
name: "E2E Tests"
runs-on: "depot-ubuntu-24.04-8"
env:
# the bot PAT is what allows pushing the validated graph back to the
# branch; it is unavailable to pull requests from forks
CAN_PUSH_GRAPH: "${{ secrets.AUTHZED_BOT_PAT != '' }}"
steps:
- uses: "actions/checkout@v6"
if: |
needs.paths-filter.outputs.graphchange == 'true'
with:
submodules: true
token: "${{ secrets.AUTHZED_BOT_PAT }}"
token: "${{ secrets.AUTHZED_BOT_PAT || github.token }}"
repository: "${{ github.event.pull_request.head.repo.full_name }}"
ref: "${{ github.event.pull_request.head.ref }}"
- uses: "actions/checkout@v6"
Expand Down Expand Up @@ -140,7 +144,7 @@ jobs:
- name: "Commit validated update graph"
uses: "EndBug/add-and-commit@v9"
if: |
steps.verify-changed-graph.outputs.files_changed == 'true'
env.CAN_PUSH_GRAPH == 'true' && steps.verify-changed-graph.outputs.files_changed == 'true'
with:
committer_name: "GitHub Actions"
committer_email: "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down
Loading
Loading