Skip to content
Draft
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
36 changes: 36 additions & 0 deletions .github/workflows/repository_sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,40 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
filter:
runs-on: ubuntu-latest
timeout-minutes: 90
permissions:
pull-requests: read
outputs:
gitignore: ${{ steps.filter.outputs.gitignore }}
readme: ${{ steps.filter.outputs.readme }}
package_name: ${{ steps.filter.outputs.package_name }}
steps:
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
id: filter
with:
filters: |
gitignore:
- '**/*.java'
- '.gitignore'
- '**/.gitignore'
- '.github/workflows/repository_sanity.yaml'
readme:
- 'generate-readme.py'
- '.github/requirements.txt'
- 'README.md'
- 'java-*/.repo-metadata.json'
- 'java-*/pom.xml'
- '.github/workflows/repository_sanity.yaml'
package_name:
- '**/*.java'
- '.github/workflows/repository_sanity.yaml'

gitignore_correctness:
# Generated files should not match .gitignore
needs: filter
if: ${{ needs.filter.outputs.gitignore == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand All @@ -53,6 +85,8 @@ jobs:

generate-readme:
# Ensure generate-readme.py runs fine
needs: filter
if: ${{ needs.filter.outputs.readme == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand All @@ -68,6 +102,8 @@ jobs:
- run: python3 generate-readme.py

package_name_check:
needs: filter
if: ${{ needs.filter.outputs.package_name == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,26 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
filter:
runs-on: ubuntu-latest
timeout-minutes: 90
permissions:
pull-requests: read
outputs:
pom: ${{ steps.filter.outputs.pom }}
steps:
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
id: filter
with:
filters: |
pom:
- '**/pom.xml'
- 'generation/check_non_release_please_versions.sh'
- '.github/workflows/versions.yaml'

unmanaged-versions-check:
needs: filter
if: ${{ needs.filter.outputs.pom == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
Expand Down
Loading