Skip to content

Not able to create PR after pushing the branch #1096

@ducretje-evooq

Description

@ducretje-evooq

No PR is created after successfully pushing the branch

When running this action, the new branch is pushed, but the action fail on Attempting creation of pull request with the following error:
::error::Not Found

Steps to reproduce

The repo is private, I can't give you the link, but here is the workflow

name: "TEST"

on:
  schedule:
    - cron: '0 1 * * *'
  workflow_dispatch: # Allow to manually trigger the pipeline
  push:
    branches:
      - main

jobs:
  nuke:
    runs-on: ubuntu-20.04
    name: "TEST"
    strategy:
      matrix:
        name: ["test"]

    steps:
      - name: Set ssh-agent
        uses: webfactory/ssh-agent@v0.5.4
        with:
          ssh-private-key: ${{ secrets.INFRA_GHA }}

      - name: Checkout
        uses: actions/checkout@v2

      - name: Hide ${{ matrix.name }}-dev.tf
        id: hide
        run: mv ${{ matrix.name }}-dev.tf ${{ matrix.name }}-dev.tf.hidden
        working-directory: ./test-infra/${{ matrix.name }}

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v3
        with:
          signoff: false
          committer: me <me@example.com>
          author:  me <me@example.com>
          delete-branch: true
          branch: beep_boop
          title: '[Phoenix] Nuke'
          body: |
            ${{ matrix.name }}-dev destruction
            [create-pull-request](https://github.com/peter-evans/create-pull-request).
          labels: |
            alpha
          draft: true

I saw it's not the first time this is happening but I'm not sure it has been solved.
#634

I never made it work, and there are no Github issue ongoing at this time.

I also tried to remove all the options, and just use

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v3

But I got the same results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions