Skip to content

Commit

Permalink
ci: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
akinoccc committed Sep 1, 2024
1 parent 5e9adf3 commit 17abc11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 41 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/notify.yml

This file was deleted.

22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- run: |
npm install
- run: |
Expand All @@ -19,17 +19,19 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- uses: ./
id: notify
with:
type: markdown
content: '## Test \n\n **Test message**'
key: ${{ secrets.WECOM_BOT_KEY }}
type: markdown # text, markdown, image, news, template_card
key: ${{ secrets.WECOM_BOT_KEY }} # Your key of wecom bot hook
content: |
# Hello all, I will release ${{ github.event.repository.name }} ${{ github.workflow }}, please note that.
> ${{ github.event.head_commit.message }}
> pushed by ${{ github.event.head_commit.committer.name }}
- name: Print output
run: |
echo "candidates: ${{ steps.notify.outputs['type'] }}"
echo "candidates: ${{ steps.notify.outputs['message'] }}"
echo "candidates: ${{ steps.notify.outputs['res'] }}"
echo "candidates: ${{ steps.notify.outputs['error'] }}"
echo "type: ${{ steps.notify.outputs['type'] }}"
echo "message: ${{ steps.notify.outputs['message'] }}"
echo "result: ${{ steps.notify.outputs['res'] }}"
echo "error: ${{ steps.notify.outputs['error'] }}"

0 comments on commit 17abc11

Please sign in to comment.