Skip to content

Commit

Permalink
ci: 🔧 use git checkout action
Browse files Browse the repository at this point in the history
  • Loading branch information
Aimerny committed May 11, 2024
1 parent eb2be8c commit 40ba7b5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git version
git clone "${{ github.event.repository.html_url }}" /home/runner/work/Elix/elix
git checkout "${{ github.ref }}"
uses: actions/checkout@v4

- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Echo Version
run: echo ${{ steps.get_version.outputs.VERSION }}

- name: Set up Go
uses: actions/setup-go@v3
Expand Down

0 comments on commit 40ba7b5

Please sign in to comment.