Skip to content

Commit 7f37a68

Browse files
committed
token as an env var
1 parent b9aa0e3 commit 7f37a68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test-with-post-step.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ jobs:
3838
3939
- name: With post step run
4040
uses: ./actions/with-post-step
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4143
with:
4244
main: |
4345
echo "with-post-step run"
4446
post: |
4547
# Write post output
4648
echo "${{ steps.command.outputs.test_output }}" > post_output.txt
4749
# Upload artifact directly from post step
48-
gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"
4950
gh actions upload-artifact --name post-step-output --path post_output.txt
5051
verify:
5152
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)