used env var in bash script instead of github secret #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up environment | |
env: | |
NugetApiKey: ${{ secrets.TRI_MONTHLY_TEMPO }} # Access the secret here | |
run: | | |
echo "Running load-env.sh script with NugetApiKey" | |
echo "NugetApiKey is set to: $NugetApiKey" # Avoid printing the actual secret in logs | |
bash /workspaces/PersistedAssemblyBuilder.ConsoleApp/.devcontainer/load-env.sh |