Skip to content

Commit

Permalink
checkout based on tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
dgulinobw committed Mar 5, 2024
1 parent f4bfe4b commit 77cfdfa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ jobs:
rebar3: ['3.18']
steps:

- uses: actions/checkout@v4
- name: Get tag name
id: get_tag_name
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v1
with:
ref: main
ref: ${{ steps.get_tag_name.outputs.VERSION }}

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down

0 comments on commit 77cfdfa

Please sign in to comment.