Add a deployment status using GitHub Actions #5709
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2 years ago we created a bot that adds a comment the end of the PR with deployment status (#1708). The bot (https://github.com/apps/shields-deployment) was a https://github.com/bkeepers/workflow app running at ZEIT Now 1.0.
This year zeit.co announced Zeit Now 1.0 shutdown. On August 7, 2020, all Zeit Now 1.0 deployments were deleted.
Just before the shutdown, I moved Workflow instance to AWS Lambda. On the one hand it was a good move, because:
On the other hand, I have some problems with the Workflow/serverless-lambda, because they use incompatible versions of Probot and it required some hacks to make them work properly (the result is stored in my private repo).
In this PR I remove Probot's configuration and migrate the whole solution to GitHub Actions.
platan/shields-deployment-status-example#55 is an example PR using similar GitHub Action