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
|
- name: Validate package versions
|
||||||
id: version
|
id: version
|
||||||
|
shell: bash
|
||||||
run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG"
|
run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -136,6 +137,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Validate package versions
|
- name: Validate package versions
|
||||||
id: version
|
id: version
|
||||||
|
shell: bash
|
||||||
run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG"
|
run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG"
|
||||||
|
|
||||||
- name: Download shared Linux payload
|
- name: Download shared Linux payload
|
||||||
@@ -146,10 +148,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Set package version
|
- name: Set package version
|
||||||
id: package
|
id: package
|
||||||
env:
|
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
|
||||||
run: |
|
run: |
|
||||||
nix develop --command bash --noprofile --norc -euo pipefail <<'EOF'
|
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
|
sed -i "s/^version: .*/version: '$VERSION'/" snap/snapcraft.yaml
|
||||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in new issue
Block a user