We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df9a71d commit 958d4b4Copy full SHA for 958d4b4
.github/workflows/main_py_to_bitly.yml
@@ -21,6 +21,10 @@
21
echo "No main.py exists"
22
exit 1
23
fi
24
+ - name: Get first line of last commit message
25
+ shell: bash
26
+ run: |
27
+ echo "one_line=$(git log --oneline -n 1 --format=%B | head -n 1)" >> $GITHUB_ENV
28
- name: Decorate path_of_main_py
29
shell: bash
30
env:
@@ -37,6 +41,6 @@
37
41
-H "Authorization: Bearer ${{ env.BITLY_PAT }}" \
38
42
-H "Content-Type: application/json" \
39
43
-X POST \
40
- -d '{"long_url": "${{ env.path_of_main_py }}"}' \
44
+ -d '{"long_url": "${{ env.path_of_main_py }}", "title": "${{ env.one_line }}"}' \
45
https://api-ssl.bitly.com/v4/bitlinks
46
0 commit comments