Update mirrors #1
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 mirrors | |
on: | |
schedule: | |
- cron: '0 0 1 * *' # Monthly | |
jobs: | |
update_mirrors: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Cache python modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install Legunto | |
env: | |
LEGUNTO_VERSION: '1.0.3' | |
run: | | |
curl -L "https://github.com/femiwiki/legunto/releases/download/v${LEGUNTO_VERSION}/legunto-${LEGUNTO_VERSION}-py3-none-any.whl" \ | |
-o "$HOME/legunto-${LEGUNTO_VERSION}-py3-none-any.whl" | |
pip install "$HOME/legunto-${LEGUNTO_VERSION}-py3-none-any.whl" | |
- name: Check & download for module updates | |
run: legunto update | |
- name: Create a pull request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
author: GitHub <[email protected]> | |
commit-message: Update Scribunto module(s) | |
title: Update Scribunto module(s) | |
branch: bump-scribunto |