Skip to content

Commit

Permalink
Added paths to GitHub Actions to trigger only when changes were made …
Browse files Browse the repository at this point in the history
…to specific sample folder
  • Loading branch information
oskardudycz committed Jul 3, 2022
1 parent 8092343 commit 33a081f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/samples_event-sourcing-esdb-aggregates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "samples/event-sourcing-esdb-aggregates/**"
# run it during pull request
pull_request:
paths:
- "samples/event-sourcing-esdb-aggregates/**"

defaults:
run:
Expand All @@ -27,7 +31,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt'
distribution: "adopt"
cache: gradle

- uses: gradle/gradle-build-action@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/samples_event-sourcing-esdb-simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "samples/event-sourcing-esdb-simple/**"
# run it during pull request
pull_request:
paths:
- "samples/event-sourcing-esdb-simple/**"

defaults:
run:
Expand All @@ -27,7 +31,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'adopt'
distribution: "adopt"
cache: gradle

- uses: gradle/gradle-build-action@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/samples_event-stream-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "samples/stream-metadata/**"
# run it during pull request
pull_request:
paths:
- "samples/stream-metadata/**"

defaults:
run:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/samples_events-versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "samples/events-versioning/**"
# run it during pull request
pull_request:
paths:
- "samples/events-versioning/**"

defaults:
run:
Expand Down

0 comments on commit 33a081f

Please sign in to comment.