Commit 8f5ab8e4 by CaIon

fix(ci): resolve release version from trigger tag

parent 36dbbf0f
...@@ -24,8 +24,12 @@ jobs: ...@@ -24,8 +24,12 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Determine Version - name: Determine Version
run: | run: |
VERSION=$(git describe --tags) if [[ "$GITHUB_REF" == refs/tags/* ]]; then
echo "VERSION=$VERSION" >> $GITHUB_ENV VERSION=${GITHUB_REF#refs/tags/}
else
VERSION=$(git describe --tags --match 'v[0-9]*')
fi
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with: with:
bun-version: '1.4.0' bun-version: '1.4.0'
...@@ -73,8 +77,12 @@ jobs: ...@@ -73,8 +77,12 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Determine Version - name: Determine Version
run: | run: |
VERSION=$(git describe --tags) if [[ "$GITHUB_REF" == refs/tags/* ]]; then
echo "VERSION=$VERSION" >> $GITHUB_ENV VERSION=${GITHUB_REF#refs/tags/}
else
VERSION=$(git describe --tags --match 'v[0-9]*')
fi
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with: with:
bun-version: '1.4.0' bun-version: '1.4.0'
...@@ -121,8 +129,12 @@ jobs: ...@@ -121,8 +129,12 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Determine Version - name: Determine Version
run: | run: |
VERSION=$(git describe --tags) if [[ "$GITHUB_REF" == refs/tags/* ]]; then
echo "VERSION=$VERSION" >> $GITHUB_ENV VERSION=${GITHUB_REF#refs/tags/}
else
VERSION=$(git describe --tags --match 'v[0-9]*')
fi
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with: with:
bun-version: '1.4.0' bun-version: '1.4.0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment