Skip to content

Commit

Permalink
Don't build and/or deploy unless necessary
Browse files Browse the repository at this point in the history
Add option to trigger any workflow manually
  • Loading branch information
mbklein committed Mar 16, 2023
1 parent bbce634 commit 4270ff6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Run Tests
on:
- push
push:
paths:
- ".github/workflows/build.yml"
- "package.json"
- "package-lock.json"
- "src/**"
- "test/**"
- "template.yaml"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
branches:
- deploy/staging
- main
paths:
- ".github/workflows/deploy.yml"
- "package.json"
- "package-lock.json"
- "src/**"
- "template.yaml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/production-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
paths:
- "docs/docs/spec/data-types.yaml"
- ".github/flags/deploy-data-types"
- ".github/workflows/production-types.yml"
workflow_dispatch:
jobs:
Push-To-Types-Repo-Production:
if: github.event.pull_request.merged == true
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/staging-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- "deploy/staging"
paths:
- "docs/docs/spec/data-types.yaml"
- ".github/flags/deploy-data-types"
- ".github/workflows/staging-types.yml"
workflow_dispatch:
jobs:
Push-To-Types-Repo-Staging:
if: github.event.pull_request.merged == true
Expand Down

0 comments on commit 4270ff6

Please sign in to comment.