Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Add comments to the workflow skip stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Mar 7, 2023
1 parent dd32a68 commit bc62f09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy_reusable-skip.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Used when a PR doesn't have any changes that require the PR deploy.
# The jobs' keys/names must align with the `deploy_reusable.yml` jobs' keys/names.

name: 'Container Build & Deploy'

on:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/terraform-ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ jobs:
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}


terraform-deploy-skip:
terraform-deploy-skip: # runs when the PR doesn't have any changes that require the PR deploy; this ensures we get the appropriate required PR checks
name: PR Infrastructure Deploy
needs: paths-filter
uses: ./.github/workflows/terraform-deploy_reusable-skip.yml
if: needs.paths-filter.outputs.operations != 'true'


pr-deploy:
name: PR Application Deploy
needs:
Expand All @@ -65,13 +66,15 @@ jobs:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

pr-deploy-skip:

pr-deploy-skip: # runs when the PR doesn't have any changes that require the PR deploy; this ensures we get the appropriate required PR checks
name: PR Application Deploy
needs:
- paths-filter
uses: ./.github/workflows/deploy_reusable-skip.yml
if: needs.paths-filter.outputs.operations != 'true'


destroy-environment:
name: Destroy PR Environment
needs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/terraform-deploy_reusable-skip.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Used when a PR doesn't have any changes that require the PR deploy.
# The job's keys/names must align with the `terraform-deploy_reusable.yml` job's keys/names.

name: Terraform Deploy

on:
Expand Down

0 comments on commit bc62f09

Please sign in to comment.