Skip to content

Commit

Permalink
chore: dump env
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhirn committed Nov 9, 2024
1 parent 10848ae commit b87a056
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,29 @@ jobs:
# echo hello
# echo more lines

- name: Set Env
run: |
echo "FOO=bar" >> ${GITHUB_ENV}
echo "ASDFASDF=blue" >> ${GITHUB_ENV}
- name: Env
run: |
ENV="$(echo '${{ toJson(env) }}' | jq -r 'keys | map("-e \(.)") | join(" ")')"
echo "ENV: ${ENV}"
- name: Foo
run: echo ${{ format('-e {0}', env) }}

- name: Alpine
id: alpine
uses: docker://alpine:latest
with:
args: echo alpine
#- name: Set Env
# run: |
# echo "FOO=bar" >> ${GITHUB_ENV}
# echo "ASDFASDF=blue" >> ${GITHUB_ENV}

#- name: Env
# run: |
# ENV="$(echo '${{ toJson(env) }}' | jq -r 'keys | map("-e \(.)") | join(" ")')"
# echo "ENV: ${ENV}"

#- name: Foo
# run: echo ${{ format('-e {0}', env) }}

#- name: Alpine
# id: alpine
# uses: docker://alpine:latest
# with:
# args: echo alpine

- name: Dump GitHub env
env:
ENV: ${{ toJson(env) }}
run: echo "$ENV"

#- name: Dump GitHub context
# env:
Expand Down

0 comments on commit b87a056

Please sign in to comment.