Skip to content

Commit

Permalink
changed hackmd-cli notes create args to get note ID for presenting link
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparrow0hawk authored Jun 10, 2022
1 parent d418cbe commit ec53921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ jobs:
env:
HMD_API_ACCESS_TOKEN: ${{ secrets.HMD_API_ACCESS_TOKEN }}
run: |
echo "::set-output name=hackmd_link::$(cat ${{ steps.branch-name.outputs.current_branch }}.md | hackmd-cli notes create | grep -oP 'http.?://\S+')"
echo "::set-output name=hackmd_link::$(cat ${{ steps.branch-name.outputs.current_branch }}.md | hackmd-cli notes create --columns=ID --output=csv --no-header)"
- name: Notify teams channel of created hackpad url
uses: jdcargile/[email protected]
with:
github-token: ${{ github.token }} # this will use the runner's token.
ms-teams-webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
notification-summary: Hackpad created for ${{ steps.split.outputs._0 }} at ${{ steps.hackmd-create.outputs.hackmd_link }} ! 🎉
notification-summary: Hackpad created for ${{ steps.split.outputs._0 }} at https://hackmd.io/@research-computing-leeds/${{ steps.hackmd-create.outputs.hackmd_link }} ! 🎉
notification-color: 28a745


0 comments on commit ec53921

Please sign in to comment.