feat: Aumentar en decimales si es agranel #4
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 Discord on Pull Request | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
notify-discord: | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'needs-qa') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send notification to Discord | |
env: | |
DISCORD_QA_FRONT: ${{ secrets.DISCORD_QA_FRONT }} | |
run: | | |
MENTION="<@481837609199599636>" | |
PAYLOAD=$(jq -n --arg url "${{ github.event.pull_request.html_url }}" --arg mention "$MENTION" '{"content": "Nuevo pull request que necesita QA: \($url)\nMencionado: \($mention)"}') | |
curl -H "Content-Type: application/json" -d "$PAYLOAD" $DISCORD_QA_FRONT |