Skip to content

Update mirrors

Update mirrors #39

name: Update mirrors
on:
schedule:
- cron: '0 0 1 * *' # Monthly
jobs:
update_mirrors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Cache python modules
uses: actions/cache@v3
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@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
author: GitHub <[email protected]>
commit-message: Update Scribunto module(s)
title: Update Scribunto module(s)
branch: bump-scribunto