diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bfe065e..19c3405 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,7 +22,7 @@ jobs: IMAGE_TAG: ${{ github.sha }} steps: - name: notify - uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/notify@HEAD + uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main with: result: 'started' name: build tag ${{ inputs.tag }} @@ -102,7 +102,7 @@ jobs: - name: post-notify if: always() - uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/notify@HEAD + uses: https://bb.hublab.ru/HUB/workflows/.gitea/actions/vk-notify@main with: result: ${{ steps.build-step.outcome }} name: build tag ${{ inputs.tag }} diff --git a/.github/workflows/notify.yaml b/.github/workflows/notify.yaml index fcb84b5..d8d2170 100644 --- a/.github/workflows/notify.yaml +++ b/.github/workflows/notify.yaml @@ -1,25 +1,25 @@ -# on: -# workflow_call: -# inputs: -# result: -# required: false -# default: "failure" -# type: string -# name: -# required: false -# type: string -# default: build -# jobs: -# notify: -# runs-on: gpu -# steps: -# - uses: dosymep/vk-teams-action@v1.0.0 -# env: -# ICONS: '{"success":"✅","failure":"❌","canceled":"🤦","started":"⚠️"}' -# with: -# token: ${{ secrets.VK_TEAMS_BOT_TOKEN }} -# to: ${{ secrets.VK_TEAMS_CHAT_ID }} -# format: MarkdownV2 -# message: | -# ${{ github.repository }} \[${{inputs.name}}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) was ${{ inputs.result }} by ${{ github.event.sender.login }} ${{ fromJson(env.ICONS)[inputs.result] }} +on: + workflow_call: + inputs: + result: + required: false + default: "failure" + type: string + name: + required: false + type: string + default: build +jobs: + notify: + runs-on: gpu + steps: + - uses: dosymep/vk-teams-action@v1.0.0 + env: + ICONS: '{"success":"✅","failure":"❌","canceled":"🤦","started":"⚠️"}' + with: + token: ${{ secrets.VK_TEAMS_BOT_TOKEN }} + to: ${{ secrets.VK_TEAMS_CHAT_ID }} + format: MarkdownV2 + message: | + ${{ github.repository }} \[${{inputs.name}}\]\(${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}\) was ${{ inputs.result }} by ${{ github.event.sender.login }} ${{ fromJson(env.ICONS)[inputs.result] }}