We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Not entirely sure whether this is already supported or not.
Is it in some way possible to remove a specified prefix from the secret names, before adding them as environment variables?
Kind of the inverse of the prefix option specified in the readme.
prefix
Really neat action!
MY_PREFIXED_SECRET_1 = ABC MY_PREFIXED_SECRET_2 = DEF
steps: - uses: actions/checkout@v3 - uses: oNaiPs/secrets-to-env-action@v1 with: secrets: ${{ toJSON(secrets) }} include: my_prefixed_* # Should include both MY_PREFIXED_SECRET_1 and MY_PREFIXED_SECRET_2 remove_prefix: my_prefixed_ - run: echo "Value of SECRET_1: $SECRET_1"
The text was updated successfully, but these errors were encountered:
Yeah, this would be helpful
Sorry, something went wrong.
No branches or pull requests
Hi,
Not entirely sure whether this is already supported or not.
Is it in some way possible to remove a specified prefix from the secret names, before adding them as environment variables?
Kind of the inverse of the
prefix
option specified in the readme.Really neat action!
Example
GitHub Secrets
MY_PREFIXED_SECRET_1 = ABC
MY_PREFIXED_SECRET_2 = DEF
YML
The text was updated successfully, but these errors were encountered: