diff --git a/.github/workflows/trigger-pages.yml b/.github/workflows/trigger-pages.yml new file mode 100644 index 00000000..e0d4b8ed --- /dev/null +++ b/.github/workflows/trigger-pages.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - master + +jobs: + rebuild-pages: + if: github.repository == 'irssi/irssi' + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + github-token: ${{ secrets.PAT_TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: context.repo.owner, + repo: 'irssi.github.io', + workflow_id: 'pages.yml', + ref: 'main' + }) \ No newline at end of file