workflow: fix fetch-depth
This commit is contained in:
parent
f3d3070ea8
commit
23d862d17c
4 changed files with 6 additions and 10 deletions
4
.github/workflows/build_benchmark.yml
vendored
4
.github/workflows/build_benchmark.yml
vendored
|
|
@ -61,10 +61,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: prepare-build
|
||||
steps:
|
||||
- name: Clone Repository (r${{ needs.prepare-build.outputs.COMMIT_COUNT }})
|
||||
- name: Clone Repository (${{ needs.prepare-build.outputs.TAG_PREFIX }}${{ needs.prepare-build.outputs.COMMIT_COUNT }})
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
|
|
|
|||
4
.github/workflows/build_preview.yml
vendored
4
.github/workflows/build_preview.yml
vendored
|
|
@ -68,10 +68,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: prepare-build
|
||||
steps:
|
||||
- name: Clone Repository (r${{ needs.prepare-build.outputs.COMMIT_COUNT }})
|
||||
- name: Clone Repository (${{ needs.prepare-build.outputs.TAG_PREFIX }}${{ needs.prepare-build.outputs.COMMIT_COUNT }})
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up gradle
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
|
|
|
|||
2
.github/workflows/build_push.yml
vendored
2
.github/workflows/build_push.yml
vendored
|
|
@ -26,8 +26,6 @@ jobs:
|
|||
|
||||
- name: Clone Repository (${{ steps.get_tag.outputs.VERSION_TAG }})
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v3
|
||||
|
|
|
|||
6
.github/workflows/build_push_preview.yml
vendored
6
.github/workflows/build_push_preview.yml
vendored
|
|
@ -27,6 +27,8 @@ jobs:
|
|||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/wrapper-validation-action@v1
|
||||
|
|
@ -39,12 +41,12 @@ jobs:
|
|||
commit_count=$(git rev-list --count HEAD)
|
||||
echo "COMMIT_COUNT=$commit_count" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Tag
|
||||
- name: Create Tag 'r${{ steps.prepare_build.outputs.COMMIT_COUNT }}'
|
||||
run: |
|
||||
git tag "r${{ steps.prepare_build.outputs.COMMIT_COUNT }}"
|
||||
git push origin "r${{ steps.prepare_build.outputs.COMMIT_COUNT }}"
|
||||
|
||||
- name: Get branch names.
|
||||
- name: Get branch names
|
||||
id: branch_names
|
||||
uses: tj-actions/branch-names@v8
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue