Comments (5)
Cause of the issue is this line below which is set to something like refs/pull/52/merge
on pull requests and thus fails.
Looks like this needs to be updated to be GITHUB_HEAD_REF
if present (which is for PRs) and then fall back to GITHUB_REF
.
from action-detect-and-tag-new-version.
Hi @marcinwfilewave, sorry for the long silence! I seem to have completely missed this issue being filed.
I'm not sure off the top of my head why this would fail for pull requests but not other workflow triggers.
Can you tell me more about why you want to run this action for PRs? I generally wouldn't want to allow anyone opening a pull request to my repo to be able to create tags every time they push a commit to their branch, but maybe you have a development flow in mind that I hadn't considered 🙂
from action-detect-and-tag-new-version.
I just ran into this myself -
I was trying to see If I can use this cool GH Action in my repo, so my first step was to open a branch and create a new workflow, that will only run on my branch.
the lazy way to do this is:
on: pull_request
(since no other branch has this new workflow).
But that's not really something I need -
I'm now changing this to a more appropriate triger:
on:
push:
branches:
# this is my test-branch:
- eyal_ci_if_version
from action-detect-and-tag-new-version.
BTW,
on:
push:
branches:
# this is my test-branch:
- eyal_ci_if_version
didn't work either, I still got the same error.
I've managed to solve it by doing this:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: eyal_ci_if_version
(I guess this GH action assume it will only be ran on master
/main
. which is reasonable. posting here to help others.)
(I also upgraded actions/checkout
to v2)
from action-detect-and-tag-new-version.
FYI. This issue still exists and is something I hit today. Will try and post if I track down root cause.
from action-detect-and-tag-new-version.
Related Issues (9)
- add support for pubspec.yaml
- Cant get blank tag-annotation-template to work
- Node.js 12 actions are deprecated HOT 2
- Update @actions/core package to v1.10.0 or greater to update SetOutput HOT 2
- Feature: Allow generating "development releases" if no new version detected
- Command failed with exit code 1: git checkout refs/pull/3/merge HOT 2
- Command failed with exit code 128 HOT 2
- File not found /dist/index.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-detect-and-tag-new-version.