Allows data to be shared between jobs and accessed via env variables and step output
Optional The data to persist from job
Optional The variable to be used to access data in other jobs
Optional Comma delimited list of variables to load into job
- uses: nick-invision/persist-action-data@v1
with:
data: ${{ steps.some-step.output.some-output }}
variable: SOME_STEP_OUTPUT
- uses: nick-invision/persist-action-data@v1
with:
data: ${{ steps.some-step.output.some-output }}
retrieve_variables: SOME_STEP_OUTPUT, SOME_OTHER_STEP_OUTPUT
- run: echo $SOME_STEP_OUTPUT
- uses: nick-invision/persist-action-data@v1
id: global-data
with:
data: ${{ steps.some-step.output.some-output }}
retrieve_variables: SOME_STEP_OUTPUT, SOME_OTHER_STEP_OUTPUT
- run: echo ${{ steps.global-data.outputs.SOME_STEP_OUTPUT }}