Skip to content

Commit ec53921

Browse files
authored
changed hackmd-cli notes create args to get note ID for presenting link
1 parent d418cbe commit ec53921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/create-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ jobs:
5454
env:
5555
HMD_API_ACCESS_TOKEN: ${{ secrets.HMD_API_ACCESS_TOKEN }}
5656
run: |
57-
echo "::set-output name=hackmd_link::$(cat ${{ steps.branch-name.outputs.current_branch }}.md | hackmd-cli notes create | grep -oP 'http.?://\S+')"
57+
echo "::set-output name=hackmd_link::$(cat ${{ steps.branch-name.outputs.current_branch }}.md | hackmd-cli notes create --columns=ID --output=csv --no-header)"
5858
5959
- name: Notify teams channel of created hackpad url
6060
uses: jdcargile/ms-teams-notification@v1.3
6161
with:
6262
github-token: ${{ github.token }} # this will use the runner's token.
6363
ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
64-
notification-summary: Hackpad created for ${{ steps.split.outputs._0 }} at ${{ steps.hackmd-create.outputs.hackmd_link }} ! 🎉
64+
notification-summary: Hackpad created for ${{ steps.split.outputs._0 }} at https://hackmd.io/@research-computing-leeds/${{ steps.hackmd-create.outputs.hackmd_link }} ! 🎉
6565
notification-color: 28a745
6666

6767

0 commit comments

Comments
 (0)