-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (54 loc) · 1.75 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Update ZITADEL version
on:
repository_dispatch:
workflow_dispatch:
inputs:
version:
default: v2.48.1
type: string
runId:
default: 8374553520
type: number
jobs:
print:
runs-on: ubuntu-22.04
steps:
- name: print
run: |
echo ${{ github.event }}\n
echo ======================================================\n
echo ${{ github.event.client_payload }}\n
echo ${{ github.event.client_payload.version }}\n
echo ${{ github.event.client_payload.runId }}\n
- name: checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
Formula/zitadel.rb
.template/zitadel.rb
-
name: download sums
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
name: checksums.txt
run-id: ${{ github.event.inputs.runId }}
repository: zitadel/zitadel
path: ./tmp
-
name: show
run: ls -R
-
name: cat
run: cat ./tmp/checksums.txt
- name: fill template
env:
VERSION: ${{ github.event.inputs.version }}
run: |
sed \
-e "s/__VERSION__/${VERSION}/g" \
-e "s/__DARWIN_ARM64_SUM__/$(awk '/zitadel-darwin-arm64.tar.gz/ {print $1}' ./tmp/checksums.txt)/g" \
-e "s/__DARWIN_X86_64_SUM__/$(awk '/zitadel-darwin-amd64.tar.gz/ {print $1}' ./tmp/checksums.txt)/g" \
-e "s/__LINUX_ARM64_SUM__/$(awk '/zitadel-linux-arm64.tar.gz/ {print $1}' ./tmp/checksums.txt)/g" \
-e "s/__LINUX_X86_64_SUM__/$(awk '/zitadel-linux-amd64.tar.gz/ {print $1}' ./tmp/checksums.txt)/g" \
.template/zitadel.rb