backport changes from release branch #755
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
on: | |
pull_request_target: | |
branches: | |
- main | |
- stable | |
- release/* | |
types: | |
- opened | |
- reopened | |
- ready_for_review | |
env: | |
USERNAME: "@trustification-bot:matrix.org" | |
PASSWORD: ${{ secrets.MATRIX_BOT_PASSWORD }} | |
ROOM: "#trustification:matrix.org" | |
jobs: | |
notify_channel: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Send message | |
if: env.PASSWORD && github.event.pull_request.draft == false | |
run: | | |
podman run --rm docker.io/matrixcommander/matrix-commander:latest --login password --homeserver https://matrix.org --device github --user-login "$USERNAME" --password "$PASSWORD" --room-default "$ROOM" --message "New PR opened: ${{ github.event.pull_request.html_url }}" --logout me |