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

No such PR #4

Open
cyrus-za opened this issue Feb 22, 2021 · 5 comments
Open

No such PR #4

cyrus-za opened this issue Feb 22, 2021 · 5 comments

Comments

@cyrus-za
Copy link

image

The PR does exist and I do have github_token: ${{ secrets.GITHUB_TOKEN }} set. Not sure why it is failing. Yes the PR does point to master

@rpbaltazar
Copy link
Contributor

Can you share your workflow setup?

@mau2099
Copy link

mau2099 commented Mar 17, 2022

did you find and answer? it looks like it's only triggerd on push events

@mau2099
Copy link

mau2099 commented Mar 17, 2022

I have this workflow, but i'm getting the same error message:

name: CI Badges

on:
  workflow_dispatch:
  pull_request:
    types: [opened, synchronize]

env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          pr_body: 'some script for creating PR description from the branch diff'
          github_token: ${{ secrets.GITHUB_TOKEN }}
          destination_branch: feat/form-1372-release-cimaster-4 #i've tried with default **master**

@iamdempa
Copy link

iamdempa commented Jun 8, 2022

Having the same issue

@Loki-Afro
Copy link

Loki-Afro commented Mar 22, 2023

@kt3k i think you got the point by now what #13 tried to archive.

the main takeaway is that github.context.ref is only set to something useful when the action got triggered by a push, unfortunately it is used here

maybe #13 also solved follow up problems which one may encounter after fixing that.
we faced a similar issue here

if one can override the source branch, basically including it in with one may have a workaround?

i solved it in my hacky repo using a different action https://github.com/Loki-Afro/manualaction/blob/4d4c04db156ebfd6d0f50c637a292df2deb8846a/.github/workflows/dependabot-to-jira.yml#L51

but it has its caveats too ... pure hack :D

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

5 participants