Skip to content

Commit

Permalink
Merge pull request #134 from nulib/workflow-run-logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein authored Mar 16, 2023
2 parents bbce634 + 4270ff6 commit a57cc6b
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 a57cc6b

Please sign in to comment.