api no longer fails when no pilots or logbook entries

This commit is contained in:
2024-12-01 11:31:19 -06:00
parent 87568056ca
commit 2723160a65
2 changed files with 6 additions and 5 deletions

View File

@@ -8,6 +8,8 @@ jobs:
changed-files: changed-files:
name: changed-files name: changed-files
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
modified_files: ${{ steps.modified-files.outputs.modified_files }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -21,15 +23,14 @@ jobs:
dir_names: 'true' dir_names: 'true'
- name: List modified files - name: List modified files
id: modified-files
env: env:
MODIFIED_FILES: ${{ steps.changed-files.outputs.modified_files }} MODIFIED_FILES: ${{ steps.changed-files.outputs.modified_files }}
run: | run: |
for file in ${MODIFIED_FILES}; do echo ${MODIFIED_FILES} >> $GITHUB_OUTPUT
echo "$file was modified"
done
build-deploy-api: build-deploy-api:
if: contains(needs.changed-files.outputs, 'api') if: contains(needs.changed-files.outputs.modified_files, 'api')
name: build-deploy-api name: build-deploy-api
needs: needs:
- changed-files - changed-files

View File

@@ -1,7 +1,7 @@
{ {
"name": "@noahspan/flying-client", "name": "@noahspan/flying-client",
"private": true, "private": true,
"version": "0.1.1", "version": "0.1.2",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",