Skip to content

Commit

Permalink
Use fetch tags from latest checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Sep 5, 2023
1 parent 69b7890 commit 8330a4f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 64 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/check-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
# temporarily do full checkout
# with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos
# fetch-depth: 100

#- name: Fetch tags
# run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Setup Java 8
uses: actions/setup-java@v3
Expand All @@ -52,13 +48,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
# temporarily do full checkout
# with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos
# fetch-depth: 100

#- name: Fetch tags
# run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Setup Java 11
uses: actions/setup-java@v3
Expand Down Expand Up @@ -137,10 +129,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
# temporarily do full checkout
# with: # gh-detect-changes.sh compares with the target branch
# fetch-depth: 0
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Setup Java 8
uses: actions/setup-java@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ jobs:
name: Update Dependency Graph
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: scalacenter/sbt-dependency-submission@v2
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Setup Java 8
uses: actions/setup-java@v3
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/license-and-vulnerabilities.yml

This file was deleted.

9 changes: 3 additions & 6 deletions .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos
fetch-depth: 100

- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Setup Java 11
uses: actions/setup-java@v3
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-1.0-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ jobs:
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
fetch-tags: true

- name: Setup Java 8
uses: actions/setup-java@v3
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ jobs:
JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
fetch-tags: true

- name: Setup Java 8
uses: actions/setup-java@v3
Expand Down

0 comments on commit 8330a4f

Please sign in to comment.