api no longer fails when no pilots or logbook entries
This commit is contained in:
20
.github/workflows/dev.yaml
vendored
20
.github/workflows/dev.yaml
vendored
@@ -5,15 +5,35 @@ on:
|
||||
- feature/**
|
||||
|
||||
jobs:
|
||||
changed-files:
|
||||
name: changed-files
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Get changed files
|
||||
uses: tj-actions/changed-files@v45
|
||||
with:
|
||||
dir_names: 'true'
|
||||
|
||||
build-deploy-api:
|
||||
if: contains(needs.changed-files.outputs.modified_files, 'api')
|
||||
name: build-deploy-api
|
||||
needs:
|
||||
- changed-files
|
||||
uses: ./.github/workflows/api.yaml
|
||||
with:
|
||||
calling_workflow: dev
|
||||
secrets: inherit
|
||||
|
||||
build-deploy-app:
|
||||
if: contains(needs.changed-files.outputs.modified_files, 'app')
|
||||
name: build-deploy-app
|
||||
needs:
|
||||
- changed-files
|
||||
uses: ./.github/workflows/app.yaml
|
||||
with:
|
||||
calling_workflow: dev
|
||||
|
||||
30
.github/workflows/pull_request.yaml
vendored
30
.github/workflows/pull_request.yaml
vendored
@@ -7,22 +7,22 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-deploy-api:
|
||||
if: github.event_name == 'pull_request' && github.event.action != 'closed'
|
||||
name: build-deploy-api
|
||||
uses: ./.github/workflows/api.yaml
|
||||
with:
|
||||
calling_workflow: dev
|
||||
secrets: inherit
|
||||
# build-deploy-api:
|
||||
# if: github.event_name == 'pull_request' && github.event.action != 'closed'
|
||||
# name: build-deploy-api
|
||||
# uses: ./.github/workflows/api.yaml
|
||||
# with:
|
||||
# calling_workflow: dev
|
||||
# secrets: inherit
|
||||
|
||||
build-deploy-app:
|
||||
if: github.event_name == 'pull_request' && github.event.action != 'closed'
|
||||
name: build-deploy-app
|
||||
uses: ./.github/workflows/app.yaml
|
||||
with:
|
||||
calling_workflow: dev
|
||||
deployment_environment: staging
|
||||
secrets: inherit
|
||||
# build-deploy-app:
|
||||
# if: github.event_name == 'pull_request' && github.event.action != 'closed'
|
||||
# name: build-deploy-app
|
||||
# uses: ./.github/workflows/app.yaml
|
||||
# with:
|
||||
# calling_workflow: dev
|
||||
# deployment_environment: staging
|
||||
# secrets: inherit
|
||||
|
||||
close-pull-request-job:
|
||||
if: github.event_name == 'pull_request' && github.event.action == 'closed'
|
||||
|
||||
Reference in New Issue
Block a user