Skip to content

Commit c13f46e

Browse files
authored
Do not delete releases on cachix failure to respond (#1077)
1 parent 434ca3e commit c13f46e

1 file changed

Lines changed: 2 additions & 25 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
${{ steps.set-image-name.outputs.image-name }}:ubuntu-jammy-${{ steps.set-image-name.outputs.kmir-version }}
6767
${{ steps.set-image-name.outputs.image-name }}:ubuntu-jammy-latest
6868
69+
# Only the Docker job gates tagging; rollback the draft if the primary artifact never shipped.
6970
- name: 'On failure, delete drafted release'
7071
if: failure()
7172
env:
@@ -141,18 +142,6 @@ jobs:
141142
DRV=$(nix-store --query --deriver ${KMIR})
142143
nix-store --query --requisites --include-outputs ${DRV} | cachix push k-framework
143144
144-
- name: 'On failure, delete drafted release'
145-
if: failure()
146-
env:
147-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148-
run: |
149-
set -x
150-
VERSION=v$(cat package/version)
151-
gh release delete ${VERSION} \
152-
--repo runtimeverification/mir-semantics \
153-
--yes \
154-
--cleanup-tag
155-
156145
nix-binary-cache:
157146
name: 'Populate Nix Binary Cache'
158147
strategy:
@@ -179,16 +168,4 @@ jobs:
179168
kup publish k-framework-binary .#kmir.rust --keep-days 180 || true
180169
181170
# Cachix has not been responding to 'cachix pin' requests made under the hood by kup. So we need to manually verify the push and pin.
182-
.github/scripts/check-cachix-pin.sh
183-
184-
- name: 'On failure, delete drafted release'
185-
if: failure()
186-
env:
187-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188-
run: |
189-
set -x
190-
VERSION=v$(cat package/version)
191-
gh release delete ${VERSION} \
192-
--repo runtimeverification/mir-semantics \
193-
--yes \
194-
--cleanup-tag
171+
.github/scripts/check-cachix-pin.sh

0 commit comments

Comments
 (0)