Code the sheet's new answers; a failed build opens an issue instead of crashing the rebuild
The evening source check stopped (correctly) on two answers the coding rules did not know: - first sighting "2 Greens": a new form option. Coded as Green, with a data flag that keeps the original answer (first_sighting_alias in core/spec/form.yaml). - row label "Unknown" on a bulk-pasted row: added to the entry values in data/dictionary.yaml. Workflow: when `collection update` reports the build failed, skip the rebuild (it would only fail again) and always open the "Source check failed" issue, so new answers are reported, not lost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
@@ -48,7 +48,8 @@ jobs:
|
||||
REDDIT_CLIENT_SECRET: ${{ secrets.REDDIT_CLIENT_SECRET }}
|
||||
run: python -m collection update --report "$RUNNER_TEMP/report.md"
|
||||
- name: Rebuild the analysis and run tests
|
||||
if: steps.check.outputs.changed == 'true'
|
||||
# not when the combined runs failed validation: the issue below reports the new answers instead
|
||||
if: steps.check.outputs.changed == 'true' && !contains(steps.check.outputs.failed, 'build')
|
||||
run: |
|
||||
python -m collection rebuild
|
||||
npm test
|
||||
@@ -83,7 +84,7 @@ jobs:
|
||||
git push origin "$branch"
|
||||
python -m collection forge open-pr --head "$branch" --title "New data from the community sources" --body-file "$RUNNER_TEMP/report.md" --automerge
|
||||
- name: Report a broken source or new answers
|
||||
if: steps.check.outputs.failed != ''
|
||||
if: always() && steps.check.outputs.failed != ''
|
||||
env:
|
||||
ATLAS_BOT_TOKEN: ${{ secrets.ATLAS_BOT_TOKEN }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user