Skip to content

Commit

Permalink
fix: sadly i have to use this workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTiedemann committed Nov 27, 2024
1 parent b6c9ff3 commit afa2354
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
23 changes: 4 additions & 19 deletions actions/gcp-gsm-load-secrets/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ inputs:
description: "Export secrets to environment"
required: false
default: true
# outputs:
# secret-names:
# description: "Comma-separated list of secret names"
# value: ${{ steps.parse_secrets.outputs.secret-names }}
outputs:
secret-json-string:
description: "JSON string with all secrets"
value: ${{ toJSON(steps.secrets.outputs) }}
runs:
using: "composite"
steps:
Expand All @@ -40,18 +40,3 @@ runs:
with:
secrets: ${{ steps.parse_secrets.outputs.secrets-list }}
export_to_environment: ${{ inputs.export-to-environment }}
- name: "test"
shell: bash
run: |
echo '${{ toJSON(steps.secrets.outputs) }}'
echo "console.log('${{ toJSON(steps.secrets.outputs) }}')"
echo "TEST=SOMEHTHING" >> "$GITHUB_OUTPUT"
# - name: "Set outputs"
# uses: "actions/github-script@v7"
# with:
# script: |
# let secrets = ${{ toJSON(steps.secrets.outputs) }}
# for (const [key, value] of Object.entries(secrets)) {
# core.setOutput(key, value);
# console.log(`Set output ${key}`);
# }
4 changes: 3 additions & 1 deletion docs/actions/gcp-gsm-load-secrets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ To load a secret from GSM figure out the following:

<!-- AUTO-DOC-OUTPUT:START - Do not remove or modify this section -->

No outputs.
| OUTPUT | TYPE | DESCRIPTION |
| ------------------ | ------ | ---------------------------- |
| secret-json-string | string | JSON string with all secrets |

<!-- AUTO-DOC-OUTPUT:END -->

Expand Down

0 comments on commit afa2354

Please sign in to comment.