Comments (7)
Sharing the problem we are facing here:
Error: unexpected error encountered: HttpError: Validation Failed: {"resource":"DeploymentStatus","code":"custom","message":"This deployment has reached the maximum number of statuses."} - see logs for more information
I believe this is due to how override works, it is fetching for all deployments of a given environment and updating its status:
: found 100 existing deployments for env
: setting deployment (***************) state to "inactive"
..... (100 more lines)
I think the solution @NickGraham101 mentioned would work for our use case also.
from deployments.
fixed with #104
from deployments.
what is the solution, could you please share? as I m also facing similar issue
from deployments.
We are hitting this This deployment has reached the maximum number of statuses.
error too. Had to disable this action for now.
from deployments.
Thanks for the suggestion @NickGraham101 , I was hitting the same issues and disabling override on my finish actions appears to have done the trick. You saved my a whole pile of confusion, appreciate it.
@nilampatel-engineer here's what my solution looked like in the end, i hope this clarifies things for you.
- name: update deployment status
uses: bobheadxi/deployments@main
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env: ${{ steps.classify.outputs.environment_key }}
env_url: "https://${{ steps.GET_TF_OUTPUT.outputs.DOMAIN }}"
desc: "Pull request env update"
override: false
Just to be clear the fix was adding override: false
.
from deployments.
I'm also seeing this issue. override: false
stops the errors but all previous deployments remain active. It seems as though the action tries to mark all past deployments inactive, including the many that are already inactive.
from deployments.
Hey everyone, unfortunately, I haven't been able to take a look at this and probably won't have the bandwidth to actively maintain this project for the time being. If someone finds a good way forward I would appreciate a PR!
If anyone is open to helping me maintain this project I'd be super grateful and happy to chat, please reach out to me via twitter, email, or #103! 🙏
from deployments.
Related Issues (20)
- Status of branch was not updated HOT 3
- `step: delete-env` does not delete env HOT 1
- Warning: The `set-output` command is deprecated and will be disabled soon HOT 1
- [email protected]
- New Delete Env Outside Deployments Check HOT 6
- Deployment status in PR not starting or updating HOT 5
- Support assigning the `task` field
- Add docs about permissions to fine-grained token HOT 5
- Warning: The set-output command is deprecated and will be disabled soon. HOT 1
- when starting a deployment workflow fails with: HttpError: invalid json response body HOT 2
- Where can I see the description? HOT 1
- HttpError: Resource not accessible by integration HOT 1
- unexpected error encountered: Error: Input required and not supplied: deployment_id HOT 1
- Input required and not supplied: deployment_id HOT 1
- Bump node version to 20 HOT 2
- Error: Unexpected error occurred: Not Found HOT 2
- Why the rename to "main"? All our actions are now broken.. :/ HOT 5
- Add support for passing a payload through? HOT 7
- Unexpected error encountered: HttpError: Not Found when using "delete-env" 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 deployments.