Loading .github/workflows/npm-publish.yml +11 −1 Original line number Diff line number Diff line Loading @@ -56,9 +56,19 @@ jobs: # Print all environment variables available in the 'test' environment printenv - name: Print specific environment variables from 'test' environment run: | for var in $(compgen -v | grep '^vars_'); do key="${var#vars_}" value="${!var}" echo "$key = '$value'" >> ".env" done for var in $(compgen -v | grep '^vars_'); do # Extract the key by removing the 'vars_' prefix key="${var#vars_}" # Get the value of the variable using indirect reference value="${!var}" # Write the key-value pair to the file echo "$key = '$value'" >> ".env" done - name: inject vars run: | Loading Loading
.github/workflows/npm-publish.yml +11 −1 Original line number Diff line number Diff line Loading @@ -56,9 +56,19 @@ jobs: # Print all environment variables available in the 'test' environment printenv - name: Print specific environment variables from 'test' environment run: | for var in $(compgen -v | grep '^vars_'); do key="${var#vars_}" value="${!var}" echo "$key = '$value'" >> ".env" done for var in $(compgen -v | grep '^vars_'); do # Extract the key by removing the 'vars_' prefix key="${var#vars_}" # Get the value of the variable using indirect reference value="${!var}" # Write the key-value pair to the file echo "$key = '$value'" >> ".env" done - name: inject vars run: | Loading