17

I would like to concatenate multiple secrets into my workflow action on GitHub.

The example that comes to mind would be to create a full path from folder to filename.

bgrand-ch
  • 788
  • 1
  • 7
  • 19

1 Answers1

34

To concatenate secrets into a workflow action on GitHub:

${{ format('{0}/{1}.{2}', secrets.FOLDER, secrets.FILENAME, secrets.EXT) }}

Sources: https://docs.github.com/en/actions/learn-github-actions/expressions#format

hoonoh
  • 2,151
  • 1
  • 11
  • 10
bgrand-ch
  • 788
  • 1
  • 7
  • 19