Skip to content

Commit

Permalink
limiting github actions runs to specific paths to limit usage of key
Browse files Browse the repository at this point in the history
  • Loading branch information
shilpasivanesan-tri committed Feb 2, 2024
1 parent ebab9dc commit aaaa774
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/piro-test-main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Testing - main

on: [push]
on:
push:
paths:
- 'web/backend/**'
- 'piro/**'
- '.github/workflows/**'
- 'tests/**'
- 'requirements.txt'
- 'setup.py'

jobs:
build:
Expand All @@ -10,7 +18,6 @@ jobs:
matrix:
os: [
ubuntu-latest,
macos-latest,
windows-latest
]
python-version: [3.9]
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/piro-test-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Testing - main

on: [pull_request]
on:
pull_request:
paths:
- 'web/backend/**'
- 'piro/**'
- '.github/workflows/**'
- 'tests/**'
- 'requirements.txt'
- 'setup.py'

jobs:
build:
Expand All @@ -10,7 +18,6 @@ jobs:
matrix:
os: [
ubuntu-latest,
macos-latest,
windows-latest
]
python-version: [3.9]
Expand Down

0 comments on commit aaaa774

Please sign in to comment.