forked from 1b-agent/opencadstudio-upstream
Tighten Nix release workflow outputs
Co-authored-by: dichhead <330471626+dichhead@users.noreply.github.com>
This commit is contained in:
1 parent
840f8fc957
commit
ab4201f3d3
1 file changed
+4
-2
@@ -47,6 +47,7 @@ jobs:
|
||||
|
||||
- name: Validate package versions
|
||||
id: version
|
||||
shell: bash
|
||||
run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG"
|
||||
|
||||
- name: Build
|
||||
@@ -136,6 +137,7 @@ jobs:
|
||||
|
||||
- name: Validate package versions
|
||||
id: version
|
||||
shell: bash
|
||||
run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG"
|
||||
|
||||
- name: Download shared Linux payload
|
||||
@@ -146,10 +148,10 @@ jobs:
|
||||
|
||||
- name: Set package version
|
||||
id: package
|
||||
env:
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
nix develop --command bash --noprofile --norc -euo pipefail <<'EOF'
|
||||
VERSION=$(python3 scripts/release.py versions --tag "$RELEASE_TAG" | sed -n 's/^version=//p')
|
||||
test -n "$VERSION"
|
||||
sed -i "s/^version: .*/version: '$VERSION'/" snap/snapcraft.yaml
|
||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
EOF
|
||||
|
||||
Reference in new issue
Block a user