Update README with ABOUT.md and INSTALL.md #21
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: Update README with ABOUT.md and INSTALL.md | |
| on: | |
| schedule: | |
| - cron: '0 6 * * 1' # every Monday at 06:00 UTC | |
| workflow_dispatch: # manual trigger | |
| jobs: | |
| check-template: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| has_template: ${{ steps.check.outputs.has_template }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Check for README.template.md | |
| id: check | |
| shell: bash | |
| run: | | |
| if [[ -f "README.template.md" ]]; then | |
| echo "has_template=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "has_template=false" >> "$GITHUB_OUTPUT" | |
| echo "README.template.md not found. Skipping README update." >&2 | |
| fi | |
| call-shared: | |
| needs: check-template | |
| if: ${{ needs.check-template.outputs.has_template == 'true' }} | |
| uses: control-toolbox/CTActions/.github/workflows/update-readme.yml@main | |
| with: | |
| template_file: README.template.md | |
| output_file: README.md | |
| package_name: CTModels # package for INSTALL.md | |
| repo_name: control-toolbox/CTModels.jl # repository for CONTRIBUTING.md links | |
| doc_url: https://control-toolbox.org/CTModels.jl | |
| assignee: "ocots" | |
| secrets: inherit |