Skip to content

Commit

Permalink
fetch tag instead of branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan committed Apr 2, 2024
1 parent 26c32c4 commit 4970cff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/sdk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.branch_name }}

- name: Fetch and checkout release tag $${{ inputs.branch_name }}
run: |
git fetch --tags
git checkout tags/v${{ inputs.branch_name }}
- name: Setup python
uses: actions/setup-python@v5
Expand Down

0 comments on commit 4970cff

Please sign in to comment.