Skip to content

Trigger Repo Update

Trigger Repo Update #3

name: Trigger Repo Update
on:
release:
types: [published, unpublished, created, edited, deleted]
workflow_dispatch:
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.VPM_LISTING }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'z3y',
repo: 'vpm-package-listing',
workflow_id: 'build-listing.yml',
ref: 'main',
})
# thanks to bd_ for this action: https://github.com/bdunderscore/modular-avatar/blob/main/.github/workflows/trigger-repo-rebuild.yml