v0.6.3 - added Matrix room support and secondary pdfs conversion mechanism. #3
Workflow file for this run
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: Post GitHub Release to Matrix | |
on: | |
release: | |
types: [published] | |
jobs: | |
post-to-matrix: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post release to Matrix room | |
env: | |
MATRIX_ACCESS_TOKEN: ${{ secrets.MATRIX_ACCESS_TOKEN }} | |
MATRIX_ROOM: "!uVJbPlFRdXNIJTOVWu:matrix.org" | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_RELEASE_TAG: ${{ github.event.release.tag_name }} | |
GITHUB_RELEASE_URL: ${{ github.event.release.html_url }} | |
GITHUB_RELEASE_NAME: ${{ github.event.release.name }} | |
run: | | |
curl -X POST "https://matrix.org/_matrix/client/v3/rooms/${MATRIX_ROOM}/send/m.room.message?access_token=${MATRIX_ACCESS_TOKEN}" \ | |
-H "Content-Type: application/json" \ | |
-d "{\"msgtype\": \"m.text\", \"body\": \"New release in ${GITHUB_REPOSITORY}: ${GITHUB_RELEASE_NAME} (${GITHUB_RELEASE_TAG})\n${GITHUB_RELEASE_URL}\"}" |