Replies: 1 comment
-
From what I understand, it appears that that ref is not available in the action. Do you have another way of verifying that that ref is available and that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to set up a CI pipeline which lints and builds any workspaces which have changes compared to the current remote main branch. For that I'm using --filter=[origin/main] as I have seen other people do. It works fine when I run it locally in my terminal but when I run it on github the remote branch is not found. This is my script:
EDIT for context:
main branch is protected with PR required, so this workflow triggers on all other branches. The flow is: branch out from main, commit changes and push to dedicated remote feature branch, the PR to main. This script is triggered on push to new remote feature branch.
The error I'm getting:
ERROR run failed: failed to resolve packages to run: git error: revspec 'origin/main' not found; class=Reference (4); code=NotFound (-3)
I have tried several variations, e.g. --filter="...[origin/main]", --filter=[origin/main] etc.
What am I misssing?
Beta Was this translation helpful? Give feedback.
All reactions