diff --git a/.github/workflows/pr-merged.yml b/.github/workflows/pr-merged.yml index 5aee9ae..20a2afd 100644 --- a/.github/workflows/pr-merged.yml +++ b/.github/workflows/pr-merged.yml @@ -7,10 +7,17 @@ name: PR Merged Notification on: workflow_call: + secrets: + TELEGRAM_API_URL: + required: true + TELEGRAM_CHAT_ID: + required: true jobs: notify: uses: domengabrovsek/github-actions/.github/workflows/send-telegram-message.yml@master - secrets: inherit + secrets: + TELEGRAM_API_URL: ${{ secrets.TELEGRAM_API_URL }} + TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} with: message: "āœ… Pull Request Merged\n\nšŸ“ Title: ${{ github.event.pull_request.title }}\nšŸ‘¤ Author: ${{ github.event.pull_request.user.login }}\n🌿 Branch: `${{ github.event.pull_request.head.ref }}` → `${{ github.event.pull_request.base.ref }}`\nšŸ”— Link: ${{ github.event.pull_request.html_url }}\nšŸ“Š Repository: ${{ github.repository }}" \ No newline at end of file diff --git a/.github/workflows/pr-opened.yml b/.github/workflows/pr-opened.yml index ea1ba94..f2b64cc 100644 --- a/.github/workflows/pr-opened.yml +++ b/.github/workflows/pr-opened.yml @@ -7,10 +7,16 @@ name: PR Opened Notification on: workflow_call: - + secrets: + TELEGRAM_API_URL: + required: true + TELEGRAM_CHAT_ID: + required: true jobs: notify: uses: domengabrovsek/github-actions/.github/workflows/send-telegram-message.yml@master - secrets: inherit + secrets: + TELEGRAM_API_URL: ${{ secrets.TELEGRAM_API_URL }} + TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} with: message: "šŸš€ New Pull Request Opened\n\nšŸ“ Title: ${{ github.event.pull_request.title }}\nšŸ‘¤ Author: ${{ github.event.pull_request.user.login }}\n🌿 Branch: `${{ github.event.pull_request.head.ref }}` → `${{ github.event.pull_request.base.ref }}`\nšŸ”— Link: ${{ github.event.pull_request.html_url }}\nšŸ“Š Repository: ${{ github.repository }}" diff --git a/.github/workflows/pr-updated.yml b/.github/workflows/pr-updated.yml index 6f12d41..97e6e98 100644 --- a/.github/workflows/pr-updated.yml +++ b/.github/workflows/pr-updated.yml @@ -7,10 +7,17 @@ name: PR Updated Notification on: workflow_call: + secrets: + TELEGRAM_API_URL: + required: true + TELEGRAM_CHAT_ID: + required: true jobs: notify: uses: domengabrovsek/github-actions/.github/workflows/send-telegram-message.yml@master - secrets: inherit + secrets: + TELEGRAM_API_URL: ${{ secrets.TELEGRAM_API_URL }} + TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} with: message: "šŸ”„ Pull Request Updated\n\nšŸ“ Title: ${{ github.event.pull_request.title }}\nšŸ‘¤ Author: ${{ github.event.pull_request.user.login }}\n🌿 Branch: `${{ github.event.pull_request.head.ref }}` → `${{ github.event.pull_request.base.ref }}`\nšŸ”— Link: ${{ github.event.pull_request.html_url }}\nšŸ“Š Repository: ${{ github.repository }}"