fix: update demos affected by SpecsResources API change and pyqrack>=1.1.0
#494
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: Reminder to update demo metadata | |
| on: | |
| pull_request_target: | |
| types: [opened, reopened] | |
| jobs: | |
| reminder: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const files = await github.paginate( | |
| github.rest.pulls.listFiles, | |
| { owner: context.repo.owner, repo: context.repo.repo, pull_number: context.issue.number } | |
| ); | |
| const touchesDemos = files.some(f => f.filename.startsWith('demonstrations_v2/')); | |
| if (!touchesDemos) return; | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: `👋 Hey, looks like you've updated some demos! | |
| 🐘 Don't forget to update the \`dateOfLastModification\` in the associated metadata files so your changes are reflected in Glass Onion (search and recommendations). | |
| Please hide this comment once the field(s) are updated. Thanks!` | |
| }) |