mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
fix: convert all usage of env.VERSION
This commit is contained in:
parent
4eed1297db
commit
0955c6fb5c
1 changed files with 2 additions and 6 deletions
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
|
@ -50,8 +50,6 @@ jobs:
|
||||||
- name: Ensure not published
|
- name: Ensure not published
|
||||||
id: ensure_not_published
|
id: ensure_not_published
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
VERSION: ${{ steps.extract_version.outputs.VERSION }}
|
|
||||||
run: |
|
run: |
|
||||||
CRATE_NAME="${{ env.CRATE_NAME }}"
|
CRATE_NAME="${{ env.CRATE_NAME }}"
|
||||||
if [ ${#CRATE_NAME} -eq 1 ]; then
|
if [ ${#CRATE_NAME} -eq 1 ]; then
|
||||||
|
@ -64,7 +62,7 @@ jobs:
|
||||||
DIR="${CRATE_NAME:0:2}/${CRATE_NAME:2:2}"
|
DIR="${CRATE_NAME:0:2}/${CRATE_NAME:2:2}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FOUND=$(curl -sSL --fail-with-body "https://index.crates.io/$DIR/${{ env.CRATE_NAME }}" | jq -s 'any(.[]; .vers == "${{ env.VERSION }}")')
|
FOUND=$(curl -sSL --fail-with-body "https://index.crates.io/$DIR/${{ env.CRATE_NAME }}" | jq -s 'any(.[]; .vers == "${{ steps.extract_version.outputs.value }}")')
|
||||||
echo "FOUND=$FOUND" >> "$GITHUB_OUTPUT"
|
echo "FOUND=$FOUND" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -99,15 +97,13 @@ jobs:
|
||||||
name: Build for ${{ matrix.host }}-${{ matrix.arch }}
|
name: Build for ${{ matrix.host }}-${{ matrix.arch }}
|
||||||
needs: [ prepare ]
|
needs: [ prepare ]
|
||||||
if: ${{ needs.prepare.outputs.found == 'false' }}
|
if: ${{ needs.prepare.outputs.found == 'false' }}
|
||||||
env:
|
|
||||||
VERSION: ${{ needs.prepare.outputs.version }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Set env
|
- name: Set env
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
ARCHIVE_NAME=${{ env.BIN_NAME }}-${{ env.VERSION }}-${{ matrix.host }}-${{ matrix.arch }}
|
ARCHIVE_NAME=${{ env.BIN_NAME }}-${{ needs.prepare.outputs.version }}-${{ matrix.host }}-${{ matrix.arch }}
|
||||||
|
|
||||||
echo "ARCHIVE_NAME=$ARCHIVE_NAME" >> $GITHUB_ENV
|
echo "ARCHIVE_NAME=$ARCHIVE_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue