Generate Instrument Table of Contents #339
Workflow file for this run
This file contains 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: Generate Instrument Table of Contents | |
run-name: Generate Instrument Table of Contents | |
on: | |
release: | |
workflow_dispatch: | |
push: | |
paths: | |
- "gh-actions-generate-toc.py" | |
- ".github/workflows/generate-toc.yml" | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
generate-instrument-toc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Prepare Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: pip install -U requests | |
- name: Generate Instrument Table of Contents | |
run: python gh-actions-generate-toc.py | |
id: generate-toc | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit and push changes | |
uses: actions4git/add-commit-push@v1 | |
if: ${{ steps.generate-toc.outputs.continue_commit != 'false' }} | |
with: | |
commit-message: ${{ steps.generate-toc.outputs.commit_message }} |