Skip to content

Commit

Permalink
ci: pass env var directly to jq, not github var
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 20, 2023
1 parent 222aa39 commit d64ba4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
to_envs() { jq -r "to_entries[] | \"\(.key)=\(.value)\""; }
echo "GIT_BRANCH=${GIT_BRANCH}" >> $GITHUB_ENV
echo "${{ env.VARS_CONTEXT }}" | to_envs >> $GITHUB_ENV
echo "${{ env.SECRETS_CONTEXT }}" | to_envs >> $GITHUB_ENV
echo "${VARS_CONTEXT}" | to_envs >> $GITHUB_ENV
echo "${SECRETS_CONTEXT}" | to_envs >> $GITHUB_ENV
- name: Create .env file
run: env > .env
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/r-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
echo "API_TAG_OVERRIDE=${API_TAG_OVERRIDE}" >> $GITHUB_ENV
echo "GIT_BRANCH=${GIT_BRANCH}" >> $GITHUB_ENV
echo "${{ env.VARS_CONTEXT }}" | to_envs >> $GITHUB_ENV
echo "${{ env.SECRETS_CONTEXT }}" | to_envs >> $GITHUB_ENV
echo "${VARS_CONTEXT}" | to_envs >> $GITHUB_ENV
echo "${SECRETS_CONTEXT}" | to_envs >> $GITHUB_ENV
- name: Create .env file
run: env > .env
Expand Down

0 comments on commit d64ba4c

Please sign in to comment.