We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed0992 commit 1045ef1Copy full SHA for 1045ef1
.github/workflows/released-assets-test.yaml
@@ -0,0 +1,29 @@
1
+---
2
+name: Test released assets
3
+on:
4
+ release:
5
+ types: [published]
6
+permissions: read-all
7
+
8
+jobs:
9
+ check-artifacts:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - run: |
13
+ test_assets() {
14
+ if [ "$(wc -l <SHA256SUMS)" != "$(find . -name 'etcd-*' | wc -l)" ]; then
15
+ echo "Invalid number of assets"
16
+ exit 1
17
+ fi
18
+ sha256sum -c SHA256SUMS
19
+ }
20
+ gh release download "{{ github.event.release.name }}"
21
+ test_assets
22
+ mkdir google-assets
23
+ for file in etcd-*; do
24
+ curl "https://storage.googleapis.com/etcd/${file}" \
25
+ --fail \
26
+ -o "google-assets/${file}"
27
+ done
28
+ cd google-assets || exit 1
29
0 commit comments