Skip to content

Commit

Permalink
Github actions: checkout won't fetch tags unless we do a full clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisguse committed Dec 6, 2024
1 parent 05fbfcb commit 2b156c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0 #TODO See https://github.com/actions/checkout/issues/1471

- uses: actions/setup-java@v4
with:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Linting

on:
push:
pull_request:
Expand All @@ -10,12 +9,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- name: checkout
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0 #TODO See https://github.com/actions/checkout/issues/1471

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: 'adopt'
java-version: '17'

- run: ./gradlew lint
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0 #TODO See https://github.com/actions/checkout/issues/1471

- uses: actions/setup-java@v4
with:
Expand Down

0 comments on commit 2b156c1

Please sign in to comment.