[RFE] future-proof stricter py3.14+ event_loop use #217
This file contains hidden or 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: issue-announce | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: {} | |
| jobs: | |
| notify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git Issue Details | |
| env: | |
| ISSUE_TITLE: ${{ github.event.issue.title }} | |
| ISSUE_CREATOR: ${{ github.event.issue.user.login }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| ISSUE_URL: ${{ github.event.issue.html_url }} | |
| run: | | |
| echo "Issue creator: $ISSUE_CREATOR" | |
| echo "Issue title: $ISSUE_TITLE" | |
| echo "Issue number: $ISSUE_NUMBER" | |
| echo "Issue url: $ISSUE_URL" | |
| - name: Google Chat Notification | |
| env: | |
| WEBHOOK_URL: ${{ secrets.WEBHOOK }} | |
| ISSUE_TITLE: ${{ github.event.issue.title }} | |
| ISSUE_CREATOR: ${{ github.event.issue.user.login }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| ISSUE_URL: ${{ github.event.issue.html_url }} | |
| run: | | |
| MESSAGE="[$ISSUE_NUMBER] $ISSUE_URL $ISSUE_TITLE ($ISSUE_CREATOR)" | |
| JSON_PAYLOAD=$(jq -n --arg txt "$MESSAGE" '{text: $txt}') | |
| curl --fail --location --request POST "$WEBHOOK_URL" \ | |
| --header 'Content-Type: application/json; charset=UTF-8' \ | |
| --data "$JSON_PAYLOAD" |