diff --git a/.gitea/workflows/java-pull-request-check-template.yml b/.gitea/workflows/java-pull-request-check-template.yml index e3b7024..e41eddb 100644 --- a/.gitea/workflows/java-pull-request-check-template.yml +++ b/.gitea/workflows/java-pull-request-check-template.yml @@ -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' }} diff --git a/.gitea/workflows/werf-deploy-template.yml b/.gitea/workflows/werf-deploy-template.yml index 7f20342..5314af7 100644 --- a/.gitea/workflows/werf-deploy-template.yml +++ b/.gitea/workflows/werf-deploy-template.yml @@ -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