Skip to content

Reuse Variables in other steps #25605

Discussion options

You must be logged in to vote

Looking at the example in the yuyitech/github-action-rancher2 Readme it seems like RANCHER_DATA must be valid JSON. You’re missing quotes around the values you’re providing. Try:

          RANCHER_DATA: |
            [
              {
                "name": "${{ env.IMAGE_NAME }}",
                "image": "${{ env.IMAGE_ID }}:${{ env.VERSION }}"
              }
            ]

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
2 participants