This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
v3.20 build 20231025_1616 #33
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: Update API | |
on: release | |
jobs: | |
run: | |
name: Generate new json from the atom feed | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Run script | |
run: python api/generate.py | |
- name: Save new json | |
run: mv output.tmp api/update.json | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v7 | |
with: | |
add: 'api/update.json' | |
branch: gh-pages | |
default_author: github_actions | |
message: 'Updated API endpoint.' |