mirror of https://github.com/databricks/cli.git
Use `fetch-tags` option in release workflows (#1025)
## Changes The manual unshallow step is superfluous and can be done as part of the `actions/checkout` step. Companion to #1022. ## Tests Manual trigger of the snapshot build workflow.
This commit is contained in:
parent
09991da534
commit
f2969e91bd
|
@ -14,9 +14,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository and submodules
|
- name: Checkout repository and submodules
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
- name: Unshallow
|
fetch-depth: 0
|
||||||
run: git fetch --prune --unshallow
|
fetch-tags: true
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
- name: Update snapshot tag
|
- name: Update snapshot tag
|
||||||
|
|
||||||
# Snapshot release may only be updated for commits to the main branch.
|
# Snapshot release may only be updated for commits to the main branch.
|
||||||
# if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
git tag snapshot
|
git tag snapshot
|
||||||
|
@ -65,7 +65,7 @@ jobs:
|
||||||
- name: Update snapshot release
|
- name: Update snapshot release
|
||||||
|
|
||||||
# Snapshot release may only be updated for commits to the main branch.
|
# Snapshot release may only be updated for commits to the main branch.
|
||||||
# if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -15,9 +15,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository and submodules
|
- name: Checkout repository and submodules
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
- name: Unshallow
|
fetch-depth: 0
|
||||||
run: git fetch --prune --unshallow
|
fetch-tags: true
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
|
|
Loading…
Reference in New Issue