Skip to content

Commit

Permalink
Use tee when setting env vars to improve debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Apr 3, 2023
1 parent a86046f commit f6091a0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/update-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: '${{ toJson(github) }}'
run: echo "${GITHUB_CONTEXT}"
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v3

Expand All @@ -34,9 +34,9 @@ jobs:
env:
RELEASE_TAG: "${{ github.event.release.tag_name }}"
run: |
git checkout -b "update-bundle/${RELEASE_TAG}"
git commit -am "Update default bundle to ${RELEASE_TAG}"
git push --set-upstream origin "update-bundle/${RELEASE_TAG}"
git checkout -b "update-bundle/$RELEASE_TAG"
git commit -am "Update default bundle to $RELEASE_TAG"
git push --set-upstream origin "update-bundle/$RELEASE_TAG"
- name: Open pull request
env:
Expand All @@ -46,11 +46,11 @@ jobs:
pr_url=$(gh pr create \
--title "Update default bundle to $cli_version" \
--body "This pull request updates the default CodeQL bundle, as used with \`tools: latest\` and on GHES, to $cli_version." \
--assignee "${GITHUB_ACTOR}" \
--assignee "$GITHUB_ACTOR" \
--draft \
)
echo "CLI_VERSION=$cli_version" >> $GITHUB_ENV
echo "PR_URL=$pr_url" >> $GITHUB_ENV
echo "CLI_VERSION=$cli_version" | tee -a "$GITHUB_ENV"
echo "PR_URL=$pr_url" | tee -a "$GITHUB_ENV"
- name: Create changelog note
shell: python
Expand Down

0 comments on commit f6091a0

Please sign in to comment.