From 31d86d7288a68f0a22017e6287f03d4c48f238bc Mon Sep 17 00:00:00 2001 From: "David J. Malan" Date: Thu, 16 Nov 2023 15:07:44 -0500 Subject: [PATCH] Automatically updates render.cs50.io --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a8b2527..6a562f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,3 +44,16 @@ jobs: tag_name: "v${{ steps.program_version.outputs.version }}", tag_commitish: "${{ github.sha }}" }) + + - name: Re-deploy dependent + if: ${{ github.ref == 'refs/heads/main' }} + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.DEPLOY50_PAT }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'cs50', + repo: 'render.cs50.io', + workflow_id: 'main.yml', + ref: 'main' + });