学研都市線直通快速の運転区間を篠山口まで延長 #1030
Workflow file for this run
This file contains hidden or 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
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "data/*.csv" | |
| push: | |
| paths: | |
| - "data/*.csv" | |
| name: Verify station data integrity | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify_migration_data: | |
| name: Verify pushed migration data | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run data validator | |
| id: validate | |
| run: | | |
| if cargo run --bin data_validator; then | |
| echo "result=success" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "result=failure" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Save metadata for comment workflow | |
| if: always() && github.event_name == 'pull_request' | |
| run: | | |
| mkdir -p /tmp/validation-artifacts | |
| echo "${{ github.event.pull_request.number }}" > /tmp/validation-artifacts/pr_number | |
| echo "${{ steps.validate.outputs.result }}" > /tmp/validation-artifacts/result | |
| if [ -f /tmp/validation_report.md ]; then | |
| cp /tmp/validation_report.md /tmp/validation-artifacts/ | |
| fi | |
| - name: Upload validation artifacts | |
| if: always() && github.event_name == 'pull_request' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: validation-result | |
| path: /tmp/validation-artifacts/ | |
| - name: Fail job if validation failed | |
| if: steps.validate.outputs.result == 'failure' | |
| run: exit 1 |