2024-04-19 09:12:58 +02:00
|
|
|
name: "Update mediawiki extensions"
|
|
|
|
on:
|
|
|
|
repository_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2024-04-19 09:16:16 +02:00
|
|
|
- cron: "51 2 * * *"
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
contents: write
|
2024-04-19 09:12:58 +02:00
|
|
|
jobs:
|
2024-04-19 09:14:41 +02:00
|
|
|
update-extensions:
|
2024-04-19 09:12:58 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
2024-05-15 21:28:13 +02:00
|
|
|
- uses: cachix/install-nix-action@v27
|
2024-04-19 09:12:58 +02:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
- run: ./modules/nixos-wiki/update-extensions.py ./modules/nixos-wiki/extensions.json
|
2024-04-19 09:16:16 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2024-04-19 09:12:58 +02:00
|
|
|
- name: Create Pull Request
|
2024-09-03 11:28:45 +02:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2024-04-19 09:12:58 +02:00
|
|
|
with:
|
2024-04-19 09:14:41 +02:00
|
|
|
title: Update mediawiki extensions
|
2024-04-19 09:12:58 +02:00
|
|
|
labels: merge-queue
|