fix: clean up workflow duplication and syntax
Homelab Main / validate (push) Failing after 1m17s Details
Homelab Main / deploy (push) Has been skipped Details

This commit is contained in:
jv 2026-09-17 23:19:16 -05:00
parent e635e73e2b
commit 02f74ce659
1 changed files with 10 additions and 23 deletions

View File

@ -10,40 +10,27 @@ jobs:
validate:
runs-on: k8s
container: node:18-bullseye
container:
image: node:18-bullseye
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ gitea.sha }}
uses: actions/checkout@v4
with:
ref: ${{ gitea.sha }}
- name: Validate repository
run: |
set -euo pipefail
./jeannie validate
deploy:
runs-on: k8s
container: node:18-bullseye
container:
image: node:18-bullseye
needs:
- validate
if: ${{ gitea.ref == 'refs/heads/main' }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ gitea.sha }}
uses: actions/checkout@v4
with:
ref: ${{ gitea.sha }}
- name: Block automatic deploy for external Gitea changes
run: |
set -euo pipefail