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:
|
||||
- name: Checkout repository and submodules
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
|
@ -56,7 +56,7 @@ jobs:
|
|||
- name: Update snapshot tag
|
||||
|
||||
# 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: |
|
||||
git tag snapshot
|
||||
|
@ -65,7 +65,7 @@ jobs:
|
|||
- name: Update snapshot release
|
||||
|
||||
# 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
|
||||
with:
|
||||
|
|
|
@ -15,9 +15,9 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository and submodules
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
|
|
Loading…
Reference in New Issue