Fixed webhook uri getting from vault issue.

This commit is contained in:
Stanislav Melnichuk 2023-06-09 16:40:48 +03:00
parent 569cc05d5c
commit dd82b90e27
2 changed files with 8 additions and 2 deletions

View File

@ -31,6 +31,9 @@ on:
VAULT_SECRET_ID:
required: true
env:
vault_main_base_path: dev/wilix/main/data/ci
jobs:
check:
name: check and test
@ -91,7 +94,7 @@ jobs:
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
secrets: |
dev/wilix/main/ci notification_url | MATTERMOST_WEBHOOK_URL ;
${{ env.vault_main_base_path }} notification_url | MATTERMOST_WEBHOOK_URL ;
- name: prepare failed notification body
if: ${{ inputs.notification_enabled && job.status == 'failure' }}

View File

@ -51,6 +51,9 @@ on:
VAULT_SECRET_ID:
required: true
env:
vault_main_base_path: dev/wilix/main/data/ci
jobs:
converge:
name: Deploy stand
@ -127,7 +130,7 @@ jobs:
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
secrets: |
dev/wilix/main/ci notification_url | MATTERMOST_WEBHOOK_URL ;
${{ env.vault_main_base_path }} notification_url | MATTERMOST_WEBHOOK_URL ;
- name: prepare success notification body
uses: https://github.com/finnp/create-file-action@master