Skip to content

Only regenerate the module list for changes on the master branch. #166

Only regenerate the module list for changes on the master branch.

Only regenerate the module list for changes on the master branch. #166

Workflow file for this run

name: Update the module list
on:
- push
jobs:
build:
if: github.repository == 'inspircd/inspircd-contrib' && github.ref_name == 'master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Regenerate the module list
run: ./regen-modules
- name: Commit the updated module list
run: |
git config --global user.name "InspIRCd Robot"
git config --global user.email "noreply@inspircd.org"
git add modules.lst
git commit --message "Regenerate the module list." || true
- name: Push the updated module list
run: git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git ${{ github.ref }}