Refactoring
This commit is contained in:
43
.github/workflows/pull_request.yaml
vendored
43
.github/workflows/pull_request.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user