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 a5dbd00Copy full SHA for a5dbd00
.github/workflows/released-assets-test.yaml
@@ -0,0 +1,28 @@
1
+---
2
+name: Test released assets
3
+on:
4
+ release: [published]
5
+permissions: read-all
6
+
7
+jobs:
8
+ check-artifacts:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - run: |
12
+ test_assets() {
13
+ if [ "$(wc -l <SHA256SUMS)" != "$(find . -name 'etcd-*' | wc -l)" ]; then
14
+ echo "Invalid number of assets"
15
+ exit 1
16
+ fi
17
+ sha256sum -c SHA256SUMS
18
+ }
19
+ gh release download "{{ github.event.release.name }}"
20
+ test_assets
21
+ mkdir google-assets
22
+ for file in etcd-*; do
23
+ curl "https://storage.googleapis.com/etcd/${file}" \
24
+ --fail \
25
+ -o "google-assets/${file}"
26
+ done
27
+ cd google-assets || exit 1
28
0 commit comments