Refactoring

This commit is contained in:
2025-01-17 20:38:24 -06:00
parent 540b38de30
commit ab56211602
68 changed files with 3201 additions and 2616 deletions

View File

@@ -7,31 +7,20 @@ 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: pull_request
version_number: ${{ github.run_id }}
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'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: 'close'
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: pull_request
version_number: ${{ github.run_id }}
secrets: inherit