Skip to content

Commit

Permalink
Add fetch-depth: 0 to github checkout workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCheatham committed Aug 7, 2023
1 parent 1c27ba3 commit 9240449
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/_protoc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Protoc
run: |
Expand All @@ -22,7 +24,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
Expand All @@ -33,7 +37,7 @@ jobs:
- name: Setup SBT
run: |
mkdir -p $HOME/bin/sbt
set -eux && curl --fail --silent --location --retry 3 https://github.com/sbt/sbt/releases/download/v1.7.3/sbt-1.7.3.tgz | gunzip | tar x -C $HOME/bin/sbt
set -eux && curl --fail --silent --location --retry 3 https://github.com/sbt/sbt/releases/download/v1.9.0/sbt-1.9.0.tgz | gunzip | tar x -C $HOME/bin/sbt
echo "$HOME/bin/sbt" >> $GITHUB_PATH
- name: Compile and Test
Expand All @@ -45,6 +49,8 @@ jobs:
steps:
- name: Checkout current branch
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Dart
uses: dart-lang/setup-dart@v1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Deploy (release only)
run: sbt ci-release
working-directory: ./build/scala
Expand Down

0 comments on commit 9240449

Please sign in to comment.