Skip to content

Commit

Permalink
Automatically updates render.cs50.io
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Nov 16, 2023
1 parent 14d1c0d commit 31d86d7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});

0 comments on commit 31d86d7

Please sign in to comment.