From 2723160a6552e3e275d45bb4dbac018358bb1cfc Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Sun, 1 Dec 2024 11:31:19 -0600 Subject: [PATCH] api no longer fails when no pilots or logbook entries --- .github/workflows/dev.yaml | 9 +++++---- app/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 1d9b62c..c6370ce 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -8,6 +8,8 @@ jobs: changed-files: name: changed-files runs-on: ubuntu-latest + outputs: + modified_files: ${{ steps.modified-files.outputs.modified_files }} steps: - name: Checkout uses: actions/checkout@v4 @@ -21,15 +23,14 @@ jobs: dir_names: 'true' - name: List modified files + id: modified-files env: MODIFIED_FILES: ${{ steps.changed-files.outputs.modified_files }} run: | - for file in ${MODIFIED_FILES}; do - echo "$file was modified" - done + echo ${MODIFIED_FILES} >> $GITHUB_OUTPUT build-deploy-api: - if: contains(needs.changed-files.outputs, 'api') + if: contains(needs.changed-files.outputs.modified_files, 'api') name: build-deploy-api needs: - changed-files diff --git a/app/package.json b/app/package.json index 795a8f6..9847a3d 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "@noahspan/flying-client", "private": true, - "version": "0.1.1", + "version": "0.1.2", "type": "module", "scripts": { "dev": "vite",