1 | name: Ingest Test Fixtures Update PR | ||
2 | |||
3 | on: | ||
4 | push: |
does this mean it gets triggered for every push?
it does, but it will get cancelled if the commit message doesn't contain "ingest-test-fixtures-update". I couldn't find a better way to do trigger this on commit, but totally open if you have other thoughts?
ah, i see. works for now!
Login to write a write a comment.
Adds a ingest-test-fixtures-update-pr workflow. It will generate a PR that targets the triggering branch, but includes any changes as a result of running the test ingest fixtures script (with OVERWRITE=true). It can be triggered on workflow_dispatch (which, once merged to main, should add a dispatch button to the workflow in the Actions menu). It can also be triggered with any commit containing the message: "ingest-test-fixtures-update". So one can also trigger with:
git commit -m "ingest-test-fixtures-update" --allow-empty
.The created PR includes the original author as assignee and as reviewer. It is authored by Unstructured-DevOps.
Note: because we trigger on commit push and workflow dispatch we have to guess at the original PR name by looking all PRs from the target branch (hopefully each branch only ever has one PR, but theoretically a known edge case).
Testing
I made a change to the azure metadata-exclude (to trigger ingest expected result changes) and pushed a commit with the name
ingest-test-fixtures-update
to trigger creation of this PR: #731