add sync workflow in test mode #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync PRs between Repos | |
on: | |
pull_request: | |
types: | |
- closed | |
- synchronize | |
- reopened | |
branches: | |
- 'master' | |
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: | | |
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${{github.event.pull_request.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 }} |