Jupyter Lite support #18
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
| --- | |
| name: citation | |
| on: # yamllint disable-line rule:truthy | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| update-citation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Need full history so we can push back to the branch | |
| fetch-depth: 0 | |
| # On a release event, use the branch/tag the release points to | |
| # On workflow_dispatch, fall back to the current ref | |
| ref: ${{ github.event.release.target_commitish || github.ref }} | |
| - name: Install python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| - name: Install dependencies needed for update_citation.py | |
| run: | | |
| pip install requests PyYAML | |
| - name: Update CITATION.cff and README.rst | |
| run: | | |
| python .github/scripts/update_citation.py | |
| - name: Commit and Push CITATION.cff Update | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git diff --exit-code || ( | |
| git add CITATION.cff README.rst && | |
| git commit -m "Update CITATION.cff with latest release date" && | |
| git push | |
| ) |