diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index f3db0db..663979d 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -4,6 +4,14 @@ on: schedule: - cron: '11 11 * * *' workflow_dispatch: ~ + push: + branches: ["main"] + paths: + - '.github/workflows/generate.yml' # To regenerate extensions.json according to any workflow changes itself + - 'xExtension-*/metadata.json' # For version/description updates in official extensions + - 'repositories.json' # For new third-party extensions + # - 'extensions.json' # Must not be included to avoid causing a commit loop + - 'generate.php' # To regenerate extensions.json with the latest approach permissions: contents: write