Trigger Repo Update #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |