Skip to content

Commit f6091a0

Browse files
committed
Use tee when setting env vars to improve debugging
1 parent a86046f commit f6091a0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/update-bundle.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Dump GitHub context
1616
env:
1717
GITHUB_CONTEXT: '${{ toJson(github) }}'
18-
run: echo "${GITHUB_CONTEXT}"
18+
run: echo "$GITHUB_CONTEXT"
1919

2020
- uses: actions/checkout@v3
2121

@@ -34,9 +34,9 @@ jobs:
3434
env:
3535
RELEASE_TAG: "${{ github.event.release.tag_name }}"
3636
run: |
37-
git checkout -b "update-bundle/${RELEASE_TAG}"
38-
git commit -am "Update default bundle to ${RELEASE_TAG}"
39-
git push --set-upstream origin "update-bundle/${RELEASE_TAG}"
37+
git checkout -b "update-bundle/$RELEASE_TAG"
38+
git commit -am "Update default bundle to $RELEASE_TAG"
39+
git push --set-upstream origin "update-bundle/$RELEASE_TAG"
4040
4141
- name: Open pull request
4242
env:
@@ -46,11 +46,11 @@ jobs:
4646
pr_url=$(gh pr create \
4747
--title "Update default bundle to $cli_version" \
4848
--body "This pull request updates the default CodeQL bundle, as used with \`tools: latest\` and on GHES, to $cli_version." \
49-
--assignee "${GITHUB_ACTOR}" \
49+
--assignee "$GITHUB_ACTOR" \
5050
--draft \
5151
)
52-
echo "CLI_VERSION=$cli_version" >> $GITHUB_ENV
53-
echo "PR_URL=$pr_url" >> $GITHUB_ENV
52+
echo "CLI_VERSION=$cli_version" | tee -a "$GITHUB_ENV"
53+
echo "PR_URL=$pr_url" | tee -a "$GITHUB_ENV"
5454
5555
- name: Create changelog note
5656
shell: python

0 commit comments

Comments
 (0)