How to concatenate secrets into workflow action on GitHub?

21k views Asked by At

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.

1

There are 1 answers

0
bgrand-ch On

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