release_event #183
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
| name: Update Title Normalization Test | |
| on: | |
| repository_dispatch: | |
| types: [release_event] | |
| workflow_dispatch: | |
| jobs: | |
| update_title_normalization_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .node-version | |
| - run: npm ci | |
| - uses: clusterflick/release-downloader@v3 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| repository: "clusterflick/data-transformed" | |
| latest: true | |
| fileName: "*" | |
| out-file-path: "transformed-data" | |
| - run: node common/tests/utils/update-test-titles.js | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: 'Update title normalization test' | |
| title: 'Update title normalization test' | |
| body: | | |
| This PR automatically updates the `test-titles.json` file with the latest titles from transformed data. | |
| ## Review Instructions | |
| Please review the changes to ensure: | |
| - All new titles are correctly normalized | |
| - No unexpected titles were added or removed | |
| - The formatting is correct | |
| This PR was automatically generated by the [update_title_normalization_test workflow](https://github.com/${{ github.repository }}/actions/workflows/update-test-titles.yml). | |
| branch: automated/update-title-normalization-test | |
| delete-branch: true | |
| labels: | | |
| automated | |
| test-data | |
| # If there are no changes, the action will not create a PR | |
| # This is the default behavior when no files have changed | |