Skip to content

Commit

Permalink
chore: update workflows (#35)
Browse files Browse the repository at this point in the history
* chore: update workflows

* chore: fix paths
  • Loading branch information
ashleyjtaylor authored Mar 12, 2024
1 parent 2cf34ff commit 1dccdfc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: ci
env:
NODE_VERSION: 20

permissions: read-all
permissions:
contents: read

on:
push:
Expand Down Expand Up @@ -76,3 +77,8 @@ jobs:
NODE_VERSION: ${{ env.NODE_VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

deploy-cdk-tools:
if: ${{ github.ref == 'refs/heads/main' }}
needs: [audit, lint, test, build, sonarcloud]
uses: ./.github/workflows/deploy-cdk-tools.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: infrastructure-env
name: deploy-cdk-env

env:
NODE_VERSION: 20
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
base: main
filters: |
infrastructure:
- '.github/workflows/infrastructure.yml'
- '.github/workflows/deploy-cdk-env.yml'
- 'infrastructure/src/env/**'
- '!**/*.md'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: infrastructure-tools
name: deploy-cdk-tools

env:
NODE_VERSION: 20
Expand All @@ -9,11 +9,7 @@ permissions:
contents: read

on:
workflow_run:
workflows: ["ci"]
branches: [main]
types:
- completed
workflow_call:

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -33,7 +29,7 @@ jobs:
base: main
filters: |
infrastructure:
- '.github/workflows/tools.yml'
- '.github/workflows/deploy-cdk-tools.yml'
- 'infrastructure/src/tools/**'
- '!**/*.md'
baseimage:
Expand Down

0 comments on commit 1dccdfc

Please sign in to comment.