More information in scheme overviews (maybe wavelengths?) #95
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: Submit a new scheme via a GitHub issue | |
| on: | |
| issues: | |
| types: [opened, edited, labeled] | |
| jobs: | |
| add-to-database: | |
| if: contains(github.event.issue.labels.*.name, 'scheme_submission') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Add the new scheme to the database | |
| id: add-to-database | |
| run: | | |
| cd scripts | |
| DB_FNAME=`python scheme_submission_handler.py '${{ github.event.issue.body }}'` | |
| echo "db_fname=$DB_FNAME" >> $GITHUB_OUTPUT | |
| cd .. | |
| - name: Generate token | |
| id: generate-token | |
| uses: tibdex/github-app-token@v1 | |
| with: | |
| app_id: ${{ secrets.APP_ID }} | |
| private_key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Create PR | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ steps.generate-token.outputs.token }} | |
| commit-message: ${{ github.event.issue.title }} | |
| title: ${{ github.event.issue.title }} | |
| body: | | |
| This PR adds a new scheme to the database. | |
| - Database file: ${{ steps.add-to-database.outputs.db_fname }} | |
| - Submitted by: @${{ github.event.issue.user.login }} | |
| - Closes #${{ github.event.issue.number }} | |
| branch: add_scheme_issue_${{ github.event.issue.number }} | |
| labels: scheme_submission | |
| draft: false |