Comments (5)
can you share your config file?
this action does not publish to npm, do you have an other action for that?
from gh-action-bump-version.
I'm getting this same problem. Here is my configuration:
name: Bump NPM Package Version
on:
workflow_dispatch:
pull_request:
branches: [ develop ]
types: [ closed ]
jobs:
version:
name: Version
if: ${{ github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: develop
token: REDACTED
- uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: REDACTED
with:
target-branch: 'develop'
skip-tag: true
# only increment patch version (default)
# regardless of commit history
minor-wording: 'SOME UNIQUE STRING THAT WILL NEVER BE USED HOPEFULLY'
major-wording: 'SOME UNIQUE STRING THAT WILL NEVER BE USED HOPEFULLY'
rc-wording: 'SOME UNIQUE STRING THAT WILL NEVER BE USED HOPEFULLY'
from gh-action-bump-version.
Can you spot the error? maybe you can provide a fix via PR. I am currently limited in time to debug this issue :(
from gh-action-bump-version.
Can you spot the error? maybe you can provide a fix via PR. I am currently limited in time to debug this issue :(
I'll see if I can take a peek sometime within the next week. For now, I managed to get the desired behavior with the following temporary workaround. Using on: push
rather than on: pull_request
lets the action work from the perspective of the branch being merged into, rather than the perspective of the branch being merged. This may give a hint as to what the issue is.
name: Bump NPM Package Version
on:
workflow_dispatch:
push:
branches: [ develop ]
jobs:
version:
name: Version
if: ${{ startsWith(github.event.head_commit.message, 'Merge pull request') || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: develop
token: REDACTED
- uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: REDACTED
with:
target-branch: 'develop'
skip-tag: true
# only increment patch version (default)
# regardless of commit history
minor-wording: 'SOME UNIQUE STRING THAT WILL NEVER BE USED HOPEFULLY'
major-wording: 'SOME UNIQUE STRING THAT WILL NEVER BE USED HOPEFULLY'
rc-wording: 'SOME UNIQUE STRING THAT WILL NEVER BE USED HOPEFULLY'
from gh-action-bump-version.
Hey,
Just wanted you to know I'm still experiencing this exact same issue.
I have the following:
on:
pull_request:
types:
- closed
jobs:
setup-test-build:
name: Setup, Build, Bump_version, test, Push Docker Image to GCR
runs-on: self-hosted
if: github.event.pull_request.merged == true
- name: 'Automated Version Bump'
uses: 'phips28/gh-action-bump-version@master'
continue-on-error: false
env:
GITHUB_TOKEN: REDACTED
with:
minor-wording: 'feat,feature,minor,add,Adds,new,Debug'
The error I am getting is:
And I suspect it will always fail as long as I'm working with pull request and not with pushes. Clearly the line failing is -->
I'm guessing the parameter it should be getting on a pull request is not github_ref but base_ref, shouldn't it?
from gh-action-bump-version.
Related Issues (20)
- Issue if the main branch is locked HOT 1
- Deployment event does not take in the target branch attribute
- v10? HOT 1
- Release not getting latest versions? HOT 2
- use >> $GITHUB_OUTPUT when runner is version 2.297.0 or greater
- Support hotfixes ("post-releases")
- Bumps minor or major instead of patch HOT 4
- Please support to change the package.json filename HOT 2
- Support for Selectively Adding Only package.json in git add HOT 1
- Trigger new workflow run on push HOT 1
- Add ability to provide value for parsing instead of commit messages HOT 1
- chore: bump node version HOT 1
- Error: Invalid format '├── https://github.com/sponsors/broofa' HOT 19
- Need to modify filename package.json to another filename. Is it possible? HOT 1
- Add option to add --no-verify to git commit HOT 3
- Anything that can be done to improve performance? HOT 4
- Issues with branch being up to date in a monorepo HOT 5
- Any tags pushed from the Bumped version commit not triggering any github workflows. HOT 2
- Output paring breaks due to unexpected outputs - add silent flag HOT 5
- [request] Document `newTag` output and how to consume it 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 gh-action-bump-version.