Skip to content

Commit

Permalink
(ci/github): Add merge job
Browse files Browse the repository at this point in the history
  • Loading branch information
jcxldn committed Oct 12, 2023
1 parent 24f1a08 commit c75ca30
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Mirror

on: ["push", "delete"]

jobs:
merge:
name: Merge
if: github.ref == 'refs/heads/main'

runs-on: ubuntu-latest

steps:
- name: Trigger Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.MERGE_PAT }}
repository: genoswitch/software-judging
event-type: merge_repo
client-payload: '{"job": "merge-v2", "repo": "webdfu", "branch": "main", "path": "hardware/webdfu"}'

0 comments on commit c75ca30

Please sign in to comment.