Update latest release links #10
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
# Update the latest release links on the installation pages. | |
# The script automatically pulls the latest version number from | |
# mantidproject/mantid/releases. | |
# | |
# This workflow is intended to be triggered manually | |
name: Update latest release links | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Create new release links | |
run: | | |
pip install -r requirements-html-gen.txt | |
python ./generate_release_html.py | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Updating installation links to latest release | |
commit_options: '--no-verify' | |
file_pattern: 'source/installation/*.html' |