Skip to content

Update README

Update README #51

Workflow file for this run

name: Update README
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@v5
- 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: CTBase # package for INSTALL.md
repo_name: control-toolbox/CTBase.jl # repository for CONTRIBUTING.md links
doc_url: https://control-toolbox.org/CTBase.jl
assignee: "ocots"
secrets: inherit