Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fetch-tags option in release workflows #1025

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down