Sharing dynamic state in GitHub workflow

It is common to define and use dynamic variables in GitHub actions. Typical use cases are labelling docker images or generating artifact names. This note outlines the steps required to achieve the goal. The key points to remember The step that shares a value must have the property id set to be referenced by the rest of the steps It is possible to print the context, and it makes it easier to troubleshoot 1 2 3 4 5 6 7 8 9 10 11 12 13 14 jobs: # Build job build: # ....

December 23, 2022 · 1 min · Michael Pavlovsky