4 Commits

Author SHA1 Message Date
6777c065ee fix: trigger release
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m33s
2026-03-20 14:39:07 -04:00
f2c4e73b8c fix(build): fix ansible trigger
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m31s
2026-03-20 13:45:28 -04:00
e82cdfd00f fix: trigger release
Some checks failed
Build BAB Application Deployment Artifact / build (push) Failing after 2m25s
2026-03-20 13:38:25 -04:00
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

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
@@ -55,8 +57,14 @@ jobs:
- name: Trigger Ansible Deploy Playbook
if: steps.build.outputs.VERSION != ''
run: |
curl --fail-with-body -sS \
response=$(curl -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 }}"
-w "\n%{http_code}" \
"${{ vars.WEBHOOK_URL }}")
http_code=$(echo "$response" | tail -1)
body=$(echo "$response" | head -n -1)
echo "Response: $body"
echo "HTTP status: $http_code"
[ "$http_code" -ge 200 ] && [ "$http_code" -lt 300 ]