Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems creating two PR's #70

Open
SamuelMolling opened this issue Jan 7, 2023 · 1 comment
Open

Problems creating two PR's #70

SamuelMolling opened this issue Jan 7, 2023 · 1 comment

Comments

@SamuelMolling
Copy link

Basically I'm using this action to create a PR by syncing a development branch for staging and after merging in staging, open the PR from staging to master. But this second PR is never triggered and I don't understand why. Follow my workflow.

They are two different files.

dev2stg.yml

name: Create PR Automatic to Staging
on:
  push:
    branches:
      - develop
    paths:
      - PATH
      - .github/**
jobs:
  sync-branches:
    runs-on: ubuntu-latest
    name: Syncing branches
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up Node
        uses: actions/setup-node@v1
        with:
          node-version: 16
      - name: Opening pull request
        id: pull
        uses: tretuna/sync-branches@1.4.0
        with:
          FROM_BRANCH: 'develop'
          TO_BRANCH: 'staging'

stg2prd.yml

name: Create PR Automatic to Master
on:
  push:
    branches:
      - staging
    paths:
      - PATH
      - .github/**
jobs:
  sync-branches:
    runs-on: ubuntu-latest
    name: Syncing branches
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up Node
        uses: actions/setup-node@v1
        with:
          node-version: 16
      - name: Opening pull request
        id: pull
        uses: tretuna/sync-bran
![Screenshot 2023-01-07 at 09 47 12](https://user-images.githubusercontent.com/56612163/211151341-55adc2f7-52eb-45a3-b47c-41b223fd342b.png)
ches@1.4.0
        with:
          FROM_BRANCH: 'staging'
          TO_BRANCH: 'master'

From the image you can see that everything ran correctly and the merge was done, but the workflow was not triggered

@SamuelMolling
Copy link
Author

@TreTuna can you help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant