Skip to content

Commit

Permalink
Merge pull request #75 from paritytech/yuri/gitspiegel-trigger
Browse files Browse the repository at this point in the history
Adding gitspiegel-trigger workflow
  • Loading branch information
mutantcornholio committed Oct 26, 2023
2 parents b49e59c + eba1541 commit f500a34
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/gitspiegel-trigger.yml
@@ -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 f500a34

Please sign in to comment.