Skip to content

Commit

Permalink
Trigger Gradle build on pushes to the default branch so the cache sta…
Browse files Browse the repository at this point in the history
…ys up to date
  • Loading branch information
object-Object committed Aug 21, 2024
1 parent af90319 commit d573eb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Build pull request
on:
pull_request:
workflow_dispatch:
# trigger on pushes to the default branch (main) to keep the cache up to date
push:
branches: main

jobs:
build:
Expand Down Expand Up @@ -48,6 +51,8 @@ jobs:
Fabric/build/libs/*.jar
hexdoc:
# don't bother running the docs build when pushing to main - nothing necessary to cache here
if: github.event_name != 'push'
uses: hexdoc-dev/hexdoc/.github/workflows/hexdoc.yml@main
permissions:
contents: write
Expand Down

0 comments on commit d573eb5

Please sign in to comment.