Trigger Repo Listing #21
Workflow file for this run
This file contains hidden or 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 Listing | |
on: | |
workflow_dispatch: | |
release: | |
types: [published, created, edited, unpublished, deleted, released] | |
jobs: | |
# Build the VPM Listing Website and deploy to GitHub Pages | |
build-listing: | |
name: build-listing | |
runs-on: ubuntu-latest | |
steps: | |
# Create GitHub Apps token | |
- name: Create GitHub Apps token | |
id: app-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ vars.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
# Trigger repository listing | |
- name: Trigger repository listing | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ steps.app-token.outputs.token }} | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'hoshinolabs', | |
repo: 'com.hoshinolabs.vpm', | |
workflow_id: 'build-listing.yml', | |
ref: 'main', | |
}) |