dictyBase/modware-annotation

View on GitHub
.github/workflows/create-pull-request.yml

Summary

Maintainability
Test Coverage
name: Create Pull Request
on: create
jobs:
  create-pr:
    runs-on: ubuntu-20.04
    if: github.actor != 'dependabot[bot]'
    steps:
      - uses: actions/checkout@v4
      - name: get branch name
        id: vars
        run: |
          branch=$(echo ${{ github.ref }} | sed -r 's/refs\/heads\///')
          echo ::set-output name=branch::${branch}
      - name: pull-request
        uses: repo-sync/pull-request@v2
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          destination_branch: develop
          pr_title: Pulling ${{ steps.vars.outputs.branch }} into develop