Skip to content
Open
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
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
name: Build schemas classes

# A pull request gets the tests, the build and the toolbox tests, so that a
# reviewer sees whether the generated output changes and whether the toolbox
# still passes with it. Only a push to pipeline writes the build to main.
on:
push:
branches:
- pipeline
paths-ignore:
- 'README.md'
pull_request:
branches:
- pipeline
paths-ignore:
- 'README.md'
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -139,7 +147,10 @@ jobs:
name: Push updates to main
runs-on: ubuntu-latest
needs: [build, test-code]
if: needs.test-code.result == 'success' && needs.build.outputs.build_updated == 'true'
if: >-
github.event_name != 'pull_request' &&
needs.test-code.result == 'success' &&
needs.build.outputs.build_updated == 'true'
steps:
- name: Checkout main branch
uses: actions/checkout@v6
Expand Down
Loading