Skip to content

Commit b95c710

Browse files
authored
Update main_py_to_bitly.yml
1 parent 624c03b commit b95c710

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/main_py_to_bitly.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,16 @@
2323
fi
2424
- name: Decorate path_of_main_py
2525
shell: bash
26+
env:
27+
BITLY_PAT: ${{ secrets.BITLY_PAT }}
2628
run: |
2729
echo "path_of_main_py=https://github.com/skysign/WSAPT/blob/master/${{ env.path_of_main_py }}" >> $GITHUB_ENV
2830
echo "${{ env.path_of_main_py }}"
29-
- name: Get bitly-pat
30-
shell: bash
31-
id: get-bitly-pat
32-
run: |
33-
echo "BITLY_PAT=${{ secrets.BITLY_PAT }}" >> $GITHUB_OUTPUT
3431
- name: Create bit.ly short url
3532
shell: bash
36-
env:
37-
bitly_pat: ${{ secrets.BITLY_PAT }}
3833
run: |
3934
curl \
40-
-H "Authorization: ${{ steps.get-bitly-pat.outputs.BITLY_PAT }}" \
35+
-H "Authorization: ${{ env.BITLY_PAT }}" \
4136
-H "Content-Type: application/json" \
4237
-X POST \
4338
-d '{"long_url": "${{ env.path_of_main_py }}"}' \

0 commit comments

Comments
 (0)