fix: xx #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Notify' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Context Variables | |
run: | | |
echo "Repository: ${{ github.event.repository.name }}" | |
echo "Workflow: ${{ github.event.workflow_run.name }}" | |
echo "Branch: ${{ github.event.workflow_run.head_branch }}" | |
echo "Commit Message: ${{ github.event.workflow_run.head_commit.message }}" | |
echo "Committer: ${{ github.event.workflow_run.head_commit.committer.name }}" | |
- uses: ./ | |
with: | |
type: markdown # text, markdown, image, news, template_card | |
content: | | |
# Hello all, I will release ${{ github.event.repository.name }} ${{ github.event.workflow_run.name }} with branch ${{ github.event.workflow_run.head_branch }}, please note that. | |
> ${{ github.event.workflow_run.head_commit.message }} | |
> pushed by ${{ github.event.workflow_run.head_commit.committer.name }} | |
key: ${{ secrets.WECOM_BOT_KEY }} # Your key of wecom bot hook |