|
| 1 | +# This workflow keeps the list of extensions up to date |
| 2 | +# in the docs/sources/next/extensions/explore.md file. |
| 3 | +# |
| 4 | +# The workflow is activated by a workflow dispatch event |
| 5 | +# of the "extension-registry-changed" type. |
| 6 | +# This event is triggered by the grafana/k6-extension-registry |
| 7 | +# repository when the extension registry changes. |
| 8 | +# |
| 9 | +# The list of extensions is generated based on https://registry.k6.io/registry.json. |
| 10 | +# If the generated list differs from the previous one, |
| 11 | +# it is pushed to the "extension-registry-changed" branch and |
| 12 | +# a pull request is created with the change (or updated if it already existed). |
| 13 | +# |
| 14 | +# It is not a problem if the registry changes several times before merging the pull request, |
| 15 | +# the pull request will be updated. The "extension-registry-changed" branch can be deleted |
| 16 | +# after merging the pull request, it will be created again if necessary. |
| 17 | + |
| 18 | +name: extension-registry-changed |
| 19 | + |
| 20 | +on: |
| 21 | + workflow_dispatch: |
| 22 | + repository_dispatch: |
| 23 | + types: [extension-registry-changed] |
| 24 | + |
| 25 | +jobs: |
| 26 | + update: |
| 27 | + runs-on: ubuntu-latest |
| 28 | + |
| 29 | + steps: |
| 30 | + - name: Checkout |
| 31 | + uses: actions/checkout@v4 |
| 32 | + |
| 33 | + - name: Generate Files |
| 34 | + run: ${{ github.workspace }}/scripts/extension-registry-changed |
| 35 | + |
| 36 | + - name: Create Pull Request |
| 37 | + uses: peter-evans/create-pull-request@v6 |
| 38 | + with: |
| 39 | + branch: extension-registry-changed |
| 40 | + commit-message: | |
| 41 | + Keep files generated from the k6 extension registry up to date |
| 42 | + title: | |
| 43 | + Update files generated from the k6 Extension Registry |
| 44 | + body: | |
| 45 | + The [k6 Extension Registry](https://registry.k6.io) has changed. |
| 46 | + This pull request contains the files generated from the k6 Extension Registry. |
| 47 | + add-paths: | |
| 48 | + docs/sources/next/extensions/explore.md |
0 commit comments