简体   繁体   中英

How to concatenate secrets into workflow action on GitHub?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM