Skip to content

Commit

Permalink
change api calls and added env to logout call
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparrow0hawk authored Jun 10, 2022
1 parent 6658669 commit 083343c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
shell: bash -l {0}
id: hackmd-create
run: |
echo "::set-output name=hackmd_link::$(hackmd-cli import ${{ steps.branch-name.outputs.current_branch }}.md | grep -oP 'http.?://\S+')"
echo "::set-output name=hackmd_link::$(cat ${{ steps.branch-name.outputs.current_branch }}.md | hackmd-cli notes create | grep -oP 'http.?://\S+')"
- name: Notify teams channel of created hackpad url
uses: jdcargile/[email protected]
Expand All @@ -64,5 +64,7 @@ jobs:

- name: logout to hackmd
shell: bash -l {0}
env:
HMD_API_ACCESS_TOKEN: ${{ secrets.HMD_API_ACCESS_TOKEN }}
run: |
hackmd-cli logout

0 comments on commit 083343c

Please sign in to comment.