Skip to content

Commit

Permalink
fix: now there is javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTiedemann committed Nov 27, 2024
1 parent 66f4c24 commit 68f61ee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions actions/gcp-gsm-load-secrets/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ runs:
secrets: ${{ steps.parse_secrets.outputs.secrets-list }}
export_to_environment: ${{ inputs.export-to-environment }}
- name: "Set outputs"
run: |
for secret in $(echo "${{ steps.parse_secrets.outputs.secret-names }}" | sed "s/,/ /g"); do
echo "${secret}=${{ steps.secrets.outputs.${secret} }}" >> $GITHUB_OUTPUT
done
uses: "actions/github-script@v7"
with:
script: |
const secrets = JSON.parse('${{ toJSON(steps.secrets.outputs) }}');
for (const [key, value] of Object.entries(secrets)) {
core.setOutput(key, value);
}

0 comments on commit 68f61ee

Please sign in to comment.