Skip to content

Commit

Permalink
[diff_headers.yml] Notify to internal chat group
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Apr 3, 2024
1 parent 989acb4 commit 7cec894
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/diff_headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,26 @@ on:
jobs:
diff-headers:
runs-on: ubuntu-latest
env:
DIFF_BOT_NOTIFICATION_URL: ${{ secrets.DIFF_BOT_NOTIFICATION_URL }}
steps:
- uses: actions/checkout@v3

- name: Diff headers
run: |
bash scripts/diff.sh ${{ inputs.base-version }} ${{ inputs.target-version }}
shell: bash
- name: Notification
run: |
URL=https://github.com/AgoraIO-Extensions/terra_shared_configs/actions/runs/${{ github.run_id }}
MESSAGE="## Diff headers between ${{ inputs.base-version }} and ${{ inputs.target-version }}:\n${URL}"
curl ${DIFF_BOT_NOTIFICATION_URL} \
-H 'Content-Type: application/json' \
-d "
{
\"msgtype\": \"text\",
\"text\": {
\"content\": \"${MESSAGE}\"
}
}"

0 comments on commit 7cec894

Please sign in to comment.