Allow caching for deployment events or other events without GITHUB_REF
See original GitHub issueAs suggested in #317 and #318, I would like to be able to use actions/cache
for events where the GITHUB_REF
environment variable is not necessarily defined.
For example, I currently have decoupled the creation and the processing of deployments.
- one ore more workflows create deployment (with differing payloads) using the Deployments API
- a workflow is triggered by a deployment event and process the actual deployment to different environments
Currently, even with #263, it is not possible to use caching for the deployment
event (see @joshmgross’ comments in #317). Consequently, deployments using a workflow setup describes as above either take a lot longer, or are not feasible.
It would be really nice to be able to use actions/cache
with a setup as described!
Let me know if there is anything I can do to help push this feature through the door.
🌱
Issue Analytics
- State:
- Created 3 years ago
- Reactions:26
- Comments:8
Top Results From Across the Web
Events that trigger workflows - GitHub Docs
Runs your workflow when someone creates a deployment in the workflow's repository. Deployments created with a commit SHA may not have a Git...
Read more >7 Github Actions Tricks I Wish I Knew Before I Started
Here are 7 tricks with github actions that changed my life (or at least my CI/CD pipeline). These tricks helped me create a...
Read more >How do I use dependency caching for GitHub actions when ...
I'm following this tutorial on using preview deployments to run Cypress ... GITHUB_REF is undefined if the event is triggered from a commit, ......
Read more >Enabling API caching to enhance responsiveness
Learn how to enable Amazon API Gateway caching to enhance your API's performance. ... When you enable caching for a stage, API Gateway...
Read more >4.2 GitHub Actions | Technical Guidelines - Mirai Solutions
1 Workflow steps. A workflow should have an identifying name and an on section that indicates upon which events the workflow should be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This would be massive for us. We’re running cypress after Vercel’s deployment.
Would love this for the exact reason of
deployment
events.