Skip to content

fix: avoid workflow failures in forks #1

fix: avoid workflow failures in forks

fix: avoid workflow failures in forks #1

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: github.event.pull_request.merged
if: secrets.MATRIX_BOT_PASSWORD

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

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 19
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