name: "Create PR" on: push jobs: create-pr-on-push: if: ${{ (contains(github.event.head_commit.message, 'feat') || contains(github.event.head_commit.message, 'bug')) && github.event.pull_request.merged == false }} runs-on: ubuntu-latest steps: - uses: actions/checkout@1.0.0 - name: Create pull request uses: 313DEVGRP/Java-Service-Tree-Framework-Frontend-Web@master with: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} head: ${{ github.ref }} base: main title: ${{ github.event.head_commit.message }}