[pull] master from awesome-mlss:master #22
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: README preview (PR) | |
| on: | |
| pull_request: | |
| paths: | |
| - 'site/_data/summerschools.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| render-preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fetch master | |
| run: git fetch origin master:master | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - run: pip install pyyaml python-dateutil ruamel.yaml | |
| - name: Render preview | |
| run: python scripts/pr_preview.py --output preview.md | |
| - name: Save PR number | |
| run: echo "${{ github.event.pull_request.number }}" > pr-number.txt | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: readme-preview | |
| path: | | |
| preview.md | |
| pr-number.txt |