2 Commits

Author SHA1 Message Date
7643662fcc fix(build): Cache improvements
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 3m14s
2026-03-20 09:39:56 -04:00
5c56d77a23 fix(build): Triggering Ansible
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m34s
2026-03-20 09:20:04 -04:00

View File

@@ -29,6 +29,7 @@ jobs:
corepack prepare yarn@stable --activate
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: node_modules
@@ -37,6 +38,7 @@ jobs:
${{ runner.os }}-node-modules-
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Create env file
@@ -54,14 +56,9 @@ jobs:
- name: Trigger Ansible Deploy Playbook
if: steps.build.outputs.VERSION != ''
uses: https://github.com/distributhor/workflow-webhook@v3
with:
webhook_url: ${{ vars.WEBHOOK_URL }}
webhook_auth_type: bearer
webhook_auth: ${{ secrets.WEBHOOK_SECRET }}
verbose: true
data: >
{
"artifact_url":
"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"
}
run: |
curl --fail-with-body -sS \
-H "Authorization: Bearer ${{ secrets.WEBHOOK_SECRET }}" \
-H "Content-Type: application/json" \
-d '{"artifact_url":"${{ gitea.server_url }}/${{ gitea.repository }}/releases/download/v${{ steps.build.outputs.VERSION }}/release-${{ steps.build.outputs.VERSION }}.tar.gz"}' \
"${{ vars.WEBHOOK_URL }}"