You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
💁♂️ This is an alternative to #317 - I have tried using this action with the deployment event, and as far as I understand, the event validation currently serves no real purpose. The action currently verifies that the GITHUB_REF environment variable is set, but never uses its value.
👋 Hey @localheinz, thanks for your contribution and feedback.
I have tried using this action with the deployment event, and as far as I understand, the event validation currently serves no real purpose.
The event validation mirrors the validation done on the server when creating and restoring caches. Every cache is associated with a scope, which is equivalent to the branch it is created on. These scopes are stored on the JWT token used to authenticate with the backing cache service. The reason we do this validation in the cache action is to provide a better error message to users and save time from creating a cache that will not be saved by the server. See #68
We'd need to do some more work on the backend cache service to support caching for events without a scope/ref attached to them. Please file an issue in this repository explaining your use-case and workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This PR
💁♂️ This is an alternative to #317 - I have tried using this action with the
deploymentevent, and as far as I understand, the event validation currently serves no real purpose. The action currently verifies that theGITHUB_REFenvironment variable is set, but never uses its value.