Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add separate file path matchers for Python and Go #24

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,48 @@

name: "Go"

# GitHub Actions does not support anchors:
# https://github.com/actions/runner/issues/1182
# so we need to duplicate paths below and manually keep them in sync.
on:
push:
branches: [ main ]
paths:
# Go source files
- '**/*.go'
# Go config files
- 'go.mod'
- 'go.sum'
# Go-relevant shell scripts
- 'go*.sh'
- 'regen.sh'
# Cross-language build files and scripts
- 'Makefile'
- 'json_to_yaml_test.sh'
# Test data
- 'testdata/**'
# Go CI configs
- '.github/workflows/go.yaml' # this file

pull_request:
branches: [ main ]
paths:
# Go source files
- '**/*.go'
# Go config files
- 'go.mod'
- 'go.sum'
# Go-relevant shell scripts
- 'go*.sh'
- 'regen.sh'
# Cross-language build files and scripts
- 'Makefile'
- 'json_to_yaml_test.sh'
# Test data
- 'testdata/**'
# Go CI configs
- '.github/workflows/go.yaml' # this file

schedule:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
#
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,39 @@

name: "Python"

# GitHub Actions does not support anchors:
# https://github.com/actions/runner/issues/1182
# so we need to duplicate paths below and manually keep them in sync.
on:
push:
branches: [ main ]
paths:
# Python source files
- '**/*.py'
# Python config files
- 'requirements.txt'
# Cross-language build files and scripts
- 'Makefile'
- 'json_to_yaml_test.sh'
# Test data
- 'testdata/**'
# Python CI configs
- '.github/workflows/python.yaml' # this file

pull_request:
branches: [ main ]
# Python source files
- '**/*.py'
# Python config files
- 'requirements.txt'
# Cross-language build files and scripts
- 'Makefile'
- 'json_to_yaml_test.sh'
# Test data
- 'testdata/**'
# Python CI configs
- '.github/workflows/python.yaml' # this file

schedule:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
#
Expand Down