Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add workflow step to fetch 'main' branch
Browse files Browse the repository at this point in the history
Spotless is configured to use the 'main' branch as a baseline for
comparison.
  • Loading branch information
jotok committed Feb 10, 2021
1 parent b5d0f42 commit 957364a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
uses: actions/checkout@v2
with:
path: ./tmp/pa
# fetch the main branch to make it available for spotless ratcheting
- name: Fetch 'main' branch
working-directory: ./tmp/pa
run: git fetch --depth=1 origin main
- name: Set up JDK 1.12
uses: actions/setup-java@v1
with:
Expand Down

0 comments on commit 957364a

Please sign in to comment.