From b7ca4e1d05d2576cd355b10811935381e52c72d3 Mon Sep 17 00:00:00 2001 From: Sylvain Verly Date: Thu, 20 Mar 2025 16:53:29 +0100 Subject: [PATCH] Add more examples --- action.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 5f0c0ef..92fd784 100644 --- a/action.yml +++ b/action.yml @@ -103,8 +103,13 @@ inputs: custom-tags: description: >- Additional tags to apply to the assumed role session. Must be a JSON object provided using toJSON. - Example: custom-tags: ${{ toJSON({ Environment: 'Production', Team: 'DevOps' }) }} - You can include secrets: custom-tags: ${{ toJSON({ Team: secrets.TEAM_NAME }) }} + Examples: + # Inline object: + custom-tags: "${{ toJSON({ 'Environment': 'Production', 'Team': 'DevOps' }) }}" + # Using a variable: + custom-tags: "${{ toJSON(vars.AWS_TAGS) }}" + # With secrets: + custom-tags: "${{ toJSON({ 'Team': secrets.TEAM_NAME }) }}" required: false outputs: