Comments (10)
Not sure why that is happening. I just know that I made the script abort the deleting if it found lots of tags because if everything is working properly there should be only one, and when you see unexpected state it's usually not the best course of action to delete everything you see :)
Are you pushing all your local tags to the remote repo or something like that? I'm wondering whether something like that could be causing this.
from build-number.
Sorry, don't know why that happens. Can you check the logs of the last few runs, does it say anything about deleting old tags?
from build-number.
I am getting the same error.
Error: ERROR: Too many my-build-number- refs in repository, found 7, expected only 1. Check your tags!
I check out the repository, modify the source code, and push it.
Then multiple tags are present and an error occurs.
Do I have to delete the old tags locally before pushing?
from build-number.
Problem solved.
I am using Sourcetree as my git client.
The "Push all tags to remotes" setting was turned on.
from build-number.
Ah, that makes sense. Thanks for letting me know.
from build-number.
I am finding similar cases of this issue in my repositories when Visual Studio is used as the primary git client
from build-number.
@Zyther Ok, is there an option there to not push all tags to remotes?
from build-number.
Thanks all, resolved on my end
from build-number.
Hi guys,
so the solution is to remove all tags? Is there another way to solve this issue in case we need to keep the tags in git repo?
from build-number.
@mitkokostakev really the best solution is to stop using this action and use the $GITHUB_RUN_NUMBER environment variable for build numbers (+ add some offset to it if you need to maintain an old build number).
from build-number.
Related Issues (15)
- Reset Build Number HOT 4
- Build number write into file HOT 1
- `set-env` command is deprecated and will be disabled soon HOT 5
- Set up initial build number through inputs HOT 2
- Getting the current build number without generating a new one via the input parameter HOT 2
- Example does not work for "runs-on: windows-latest" ? HOT 5
- Replace deprecated set-output command HOT 1
- Update to run on Node 16 instead of Node 12 HOT 1
- Error: Failed to create new build-number ref. Status: 403 HOT 1
- error in readme example HOT 1
- hardcoded `build-number` prefix isn't very flexible HOT 2
- Provide option to leave repository clean HOT 2
- Error when use it in my github actions yaml. HOT 4
- race condition HOT 3
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 build-number.