Skip to content

Commit

Permalink
update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
paradise98425 authored Jan 7, 2023
1 parent a07a5e3 commit ea0d992
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get latest commit info
- name: New updates released
run: |
echo "::set-output name=TITLE::$(git show -1 --format='%s' -s)"
echo "::set-output name=BODY::$(git show -1 --format='%b' -s)"
id: latest_commit
- uses: andreasgylche/SharyUI@notifications
with:
webhook_url: https://hooks.slack.com/services/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
title: ${{ steps.latest_commit.outputs.TITLE }}
body: ${{ steps.latest_commit.outputs.BODY }}
context: Website
- name: Announce on Slack
run: |
curl https://hooks.slack.com/services/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 \
--request POST \
--header 'Content-type: application/json' \
--data \
'{
"blocks": [
"type": "header",
"text": {
"type": "plain text"
}
]
}'

0 comments on commit ea0d992

Please sign in to comment.