Skip to content

Commit

Permalink
Add GH workflow to trigger redeploy after new packages are published (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low authored Nov 13, 2024
1 parent 505b402 commit fc8fc4f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/trigger-redeploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Trigger Redeploy

on:
# run whenever a new maproulette/maproulette-frontend package is published to GHCR
registry_package:
types: [published]

jobs:
trigger:
runs-on: ubuntu-latest

steps:
- name: Send trigger-workflow webhook to maproulette-deploy repository
run: |
curl -L \
-X POST \
https://api.github.com/repos/maproulette/maproulette-deploy/dispatches \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-d '{"event_type": "trigger-workflow" }'

0 comments on commit fc8fc4f

Please sign in to comment.