Skip to content

Commit 6768a0e

Browse files
authored
Update main_py_to_bitly.yml
1 parent 765e205 commit 6768a0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main_py_to_bitly.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
run: echo "path_of_main_py=https://github.com/skysign/WSAPT/blob/master/${{ env.path_of_main_py }}" >> $GITHUB_ENV
2424
- name: Print path_of_main_py
2525
run: echo "${{ env.path_of_main_py }}"
26+
- shell: bash
27+
env:
28+
BITLY_ACCESS_TOKEN: ${{ secrets.BITLY_ACCESS_TOKEN }}
2629
- name: Create bit.ly short url
2730
run: |
2831
curl \
29-
-H 'Authorization: Bearer ${{ secrets.BITLY_ACCESS_TOKEN }}' \
32+
-H 'Authorization: Bearer $BITLY_ACCESS_TOKEN' \
3033
-H 'Content-Type: application/json' \
3134
-X POST \
3235
-d '{"long_url": "${{ env.path_of_main_py }}"}' \

0 commit comments

Comments
 (0)