From 4ac9781ce6b7b72bed0653923c2c336eecb4f232 Mon Sep 17 00:00:00 2001 From: Didier Date: Sat, 29 Apr 2023 23:42:15 +0200 Subject: [PATCH] add validation --- .github/workflows/update-server.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/update-server.yml b/.github/workflows/update-server.yml index 64c8bef..537d124 100644 --- a/.github/workflows/update-server.yml +++ b/.github/workflows/update-server.yml @@ -2,7 +2,23 @@ name: update neo with compose files run-name: update on ${{ github.sha }} on: [push] jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: install docker-compose + run: | + apt update -y + apt install docker-compose + - name: check docker-compose + run: | + cd ${{ github.workspace }} + DC_ARGS="" + for $f in docker-compose.*.yml; do + DC_ARGS="-f $f" + done + docker-compose $DC_ARGS config update: + needs: [validate] runs-on: ubuntu-latest steps: - name: setup ssh