Skip to content
on:
pull_request_target:
branches:
- main
- stable
- release/*
types:
- closed
env:
USERNAME: "@trustification-bot:matrix.org"
PASSWORD: ${{ secrets.MATRIX_BOT_PASSWORD }}
ROOM: "#trustification:matrix.org"
jobs:
notify_channel:
runs-on: ubuntu-22.04
if: ${{ env.PASSWORD && github.event.pull_request.merged }}

Check failure on line 18 in .github/workflows/rita-pr-merged.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/rita-pr-merged.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/rita-pr-merged.yaml (Line: 18, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PASSWORD && github.event.pull_request.merged
steps:
- name: Send message
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 "🎉 PR merged: ${{ github.event.pull_request.html_url }}" --logout me