From 3536acf50a8be9fbc929d2fa40de806a531faa20 Mon Sep 17 00:00:00 2001 From: Nikita Andriyanov Date: Mon, 23 Dec 2024 12:57:19 +0300 Subject: [PATCH] add imput --- .github/workflows/notify.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify.yaml b/.github/workflows/notify.yaml index f16e98c..bf6b75c 100644 --- a/.github/workflows/notify.yaml +++ b/.github/workflows/notify.yaml @@ -2,6 +2,10 @@ name: notify on: workflow_call: + inputs: + repository: + required: true + type: string jobs: gradle-build: runs-on: ubuntu-latest @@ -11,6 +15,6 @@ jobs: MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} PAYLOAD: | { - "text": "${{ github.repository }} [Pipeline](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was canceled :man_facepalming:" + "text": "${{ github.repository }} [Pipeline](${{ github.server_url }}/${{ inputs.repository }}/actions/runs/${{ github.run_number }}) was canceled :man_facepalming:" }