File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 23
23
fi
24
24
- name : Decorate path_of_main_py
25
25
shell : bash
26
+ env :
27
+ BITLY_PAT : ${{ secrets.BITLY_PAT }}
26
28
run : |
27
29
echo "path_of_main_py=https://github.com/skysign/WSAPT/blob/master/${{ env.path_of_main_py }}" >> $GITHUB_ENV
28
30
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
34
31
- name : Create bit.ly short url
35
32
shell : bash
36
- env :
37
- bitly_pat : ${{ secrets.BITLY_PAT }}
38
33
run : |
39
34
curl \
40
- -H "Authorization: ${{ steps.get-bitly-pat.outputs .BITLY_PAT }}" \
35
+ -H "Authorization: ${{ env .BITLY_PAT }}" \
41
36
-H "Content-Type: application/json" \
42
37
-X POST \
43
38
-d '{"long_url": "${{ env.path_of_main_py }}"}' \
You can’t perform that action at this time.
0 commit comments