fullstorydev / fullstory-browser-sdk

Official FullStory SDK for JavaScript, for web browsers
MIT License
55 stars 17 forks source link

Remove github action context #25

Closed patrick-fs closed 4 years ago

patrick-fs commented 4 years ago

While I was developing the GitHub Action that checks for the latest version of the snippet, I was using a workflow triggered by a push, which allowed me to test my code changes immediately: I'd change code, push it to the repo, trigger the action, and verify the results (on a forked repo).

I was using a context object from the github package to get access to information about the currently executing repository and branch. However, when I switched from a push trigger to a schedule trigger, the context object changed and the properties I relied on were not available.

This PR replaces the context object with references to stable environment variables that describe the repo and the branch. The functionality of the Action is the same as before.