Skip to content

Commit

Permalink
feat: send msg to google when new version is available ✨ (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
iurynogueira authored Dec 5, 2023
1 parent 7a45cfe commit cf1b13f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,15 @@ jobs:
working-directory: dist/ion
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

- name: Send message to Google Chat
run: |
API_KEY="${{ secrets.GOOGLE_CHAT_API_KEY }}"
TOKEN="${{ secrets.GOOGLE_CHAT_TOKEN }}"
SPACE_ID="${{ secrets.SPACE_ID }}"
MESSAGE="Ion - Nova versão disponível!"
curl -X POST \
-H "Content-Type: application/json; charset=UTF-8" \
-d "{\"text\": \"${MESSAGE}\"}" \
"https://chat.googleapis.com/v1/spaces/${SPACE_ID}/messages?key=${API_KEY}&token=${TOKEN}"

0 comments on commit cf1b13f

Please sign in to comment.