Skip to content

Commit

Permalink
Merge pull request #357 from paritytech/yuri/gitspiegel-trigger
Browse files Browse the repository at this point in the history
Adding gitspiegel-trigger workflow
  • Loading branch information
mutantcornholio authored Oct 30, 2023
2 parents 2e90191 + ab65d07 commit 1b76235
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/gitspiegel-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: gitspiegel sync

on:
pull_request:
types:
- opened
- synchronize
- unlocked
- ready_for_review
- reopened

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Trigger sync via API
run: |
curl --fail-with-body -XPOST "https://gitspiegel.parity-prod.parity.io/api/v1/mirror/${{ github.repository }}/pull/${{ github.event.number }}" \
-H "Content-Type: application/json" \
-H "x-auth: ${{ secrets.GITSPIEGEL_TOKEN }}"

0 comments on commit 1b76235

Please sign in to comment.