Skip to content

Commit

Permalink
add sync workflow in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyonur committed Mar 15, 2024
1 parent 16cf255 commit df5e760
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/create-pr-subnet-evm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Sync PRs between Repos

on:
pull_request:
# types: [closed]

jobs:
sync_pr:
# if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create PR in Repo Subnet-EVM
run: |
# Get the body of the original PR
original_body=$(gh pr view ${GITHUB_REPOSITORY} --json body --jq '.body')
gh pr create \
--repo ava-labs/subnet-evm \
--title "${{ github.event.pull_request.title }}" \
--body "This PR was automatically created to sync changes from Coreth.\n\nOriginal PR: ${{ github.event.pull_request.html_url }}\n\n---\n\n${original_body}" \
--base "${{ github.event.pull_request.base.ref }}" \
--head "${{ github.event.pull_request.head.ref }}" \
--assignee "${{ github.event.pull_request.user.login }}" \
--draft=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit df5e760

Please sign in to comment.