Automated RDD Generation #252
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: Automated RDD Generation | |
| on: | |
| schedule: | |
| - cron: '0 0 * * FRI' | |
| workflow_dispatch: | |
| jobs: | |
| build: # job 1 | |
| name: 'Generate RDD' | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'pdsen-ci' | |
| strategy: | |
| matrix: | |
| build-number: ['18'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| git clone --depth 1 https://github.com/NASA-PDS/lasso-issues.git /tmp/lasso-issues | |
| pip install /tmp/lasso-issues | |
| - name: Generate RDD | |
| run: | | |
| pds-issues --token ${{ secrets.ADMIN_GITHUB_TOKEN }} --format rst --issue_state closed --build B${{matrix.build-number}} --group-by-component | |
| mkdir -p docs/source/releases/${{matrix.build-number}} | |
| mv pdsen_issues.rst docs/source/releases/${{matrix.build-number}}/rdd.rst | |
| - name: Make Sphinx | |
| id: make | |
| run: | | |
| cd docs | |
| make github | |
| cd .. | |
| - name: Push LDDs to Github | |
| run: | | |
| git config --local user.email "pdsen-ci@jpl.nasa.gov" | |
| git config --local user.name "PDSEN CI Bot" | |
| git add -A . | |
| git commit --allow-empty -m "Auto-generated RDD by PDSEN CI Bot" | |
| - name: Push changes | |
| uses: ad-m/github-push-action@57116acb309081ee57864270b0e3c4cedbe45452 | |
| with: | |
| github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |