Skip to content

chore: add merge notification #1

chore: add merge notification

chore: add merge notification #1

name: Renovate merge notification
on:
push:
branches:
- main
jobs:
notify:
runs-on: ubuntu-latest
if: github.actor == 'erhardt-consulting-bot'
steps:
- name: Send telegram notification
if: ${{ secrets.TELEGRAM_BOT_TOKEN && secrets.TELEGRAM_CHAT_ID }}

Check failure on line 12 in .github/workflows/notify-telegram.yml

View workflow run for this annotation

GitHub Actions / Renovate merge notification

Invalid workflow file

The workflow is not valid. .github/workflows/notify-telegram.yml (Line: 12, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.TELEGRAM_BOT_TOKEN && secrets.TELEGRAM_CHAT_ID
run: |-
curl -s -X POST \
https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
-d chat_id=${{ secrets.TELEGRAM_CHAT_ID }} \
-d text="🤖 Renovate: **${{ github.repository }}**\n\n${{ github.event.head_commit.message }}\n\n${{ github.event.head_commit.url }}"