Skip to content

Commit 7017114

Browse files
committed
Add component version number to stable commit release message
1 parent 8c0eafd commit 7017114

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

.github/workflows/release-stable.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,53 @@ on:
88
required: true
99
type: string
1010
jobs:
11+
version:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
version: ${{ github.event.inputs.version }}
15+
prosody_version: prosody-${{ steps.prosody_version.outputs.version }}
16+
jicofo_version: jicofo-${{ steps.jicofo_version.outputs.version }}
17+
web_version: web-${{ steps.web_version.outputs.version }}
18+
jvb_version: jvb-${{ steps.jvb_version.outputs.version }}
19+
jibri_version: jibri-${{ steps.jibri_version.outputs.version }}
20+
jigasi_version: jigasi-${{ steps.jigasi_version.outputs.version }}
21+
steps:
22+
- name: Prosody gpg key
23+
id: prosody_gpg_key
24+
run: curl --location --silent --show-error https://prosody.im/files/prosody-debian-packages.key | sudo dd of=/etc/apt/keyrings/prosody.gpg
25+
- name: Prosody dsa1024 key support
26+
run: echo 'APT::Key::Assert-Pubkey-Algo ">=rsa2048,ed25519,ed448,dsa1024";' | sudo tee /etc/apt/apt.conf.d/99weakkey-warning
27+
- name: Prosody repo
28+
id: prosody_repo
29+
run: echo "deb [signed-by=/etc/apt/keyrings/prosody.gpg] https://packages.prosody.im/debian bookworm main" | sudo tee /etc/apt/sources.list.d/prosody.list
30+
- name: Jitsi repo
31+
uses: myci-actions/add-deb-repo@11
32+
with:
33+
repo: deb https://download.jitsi.org/ stable/
34+
repo-name: jitsi
35+
keys-asc: https://download.jitsi.org/jitsi-key.gpg.key
36+
- name: Get current jicofo versions
37+
id: jicofo_version
38+
run: echo "version=$( apt-cache show jitsi-meet | head -10 | grep '^Depends:' | tr ',' '\n' | grep jicofo | cut -d'=' -f2 | tr -d ')' | awk '{print $1}' )" >> $GITHUB_OUTPUT
39+
- name: Get current jitsi-meet-web versions
40+
id: web_version
41+
run: echo "version=$( apt-cache show jitsi-meet | head -10 | grep '^Depends:' | tr ',' '\n' | grep 'jitsi-meet-web ' | cut -d'=' -f2 | tr -d ')' | awk '{print $1}' )" >> $GITHUB_OUTPUT
42+
- name: Get current jvb versions
43+
id: jvb_version
44+
run: echo "version=$( apt-cache show jitsi-meet | head -10 | grep '^Pre-Depends:'| tr ',' '\n' | grep 'jitsi-videobridge2' | cut -d'=' -f2 | tr -d ')' | awk '{print $1}' )" >> $GITHUB_OUTPUT
45+
- name: Get current prosody versions
46+
id: prosody_version
47+
run: echo "version=$( apt-cache madison prosody | awk '{print $3;}' | head -1 | cut -d'-' -f1 )" >> $GITHUB_OUTPUT
48+
- name: Get current jibri version
49+
id: jibri_version
50+
run: echo "version=$( apt-cache show jibri | head -10 | grep Version | awk '{print $2}' )" >> $GITHUB_OUTPUT
51+
- name: Get current jigasi version
52+
id: jigasi_version
53+
run: echo "version=$( apt-cache show jigasi | head -10 | grep Version | awk '{print $2}' )" >> $GITHUB_OUTPUT
54+
1155
gh-release:
1256
runs-on: ubuntu-latest
13-
needs: [base, base-java, jibri, jicofo, jigasi, jvb, prosody, web]
57+
needs: [version, base, base-java, jibri, jicofo, jigasi, jvb, prosody, web]
1458
permissions:
1559
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
1660
contents: write
@@ -20,7 +64,17 @@ jobs:
2064
sed -i".bak" -e "s/unstable/stable-${{ github.event.inputs.version }}/" *.yml
2165
- uses: stefanzweifel/git-auto-commit-action@v5
2266
with:
23-
commit_message: "release: stable-${{ github.event.inputs.version }}"
67+
# multiline commit message including the version numbers for all components
68+
commit_message: |
69+
release: stable-${{ github.event.inputs.version }}
70+
71+
Using versions
72+
- Prosody = ${{ needs.version.outputs.prosody_version }}
73+
- Jicofo = ${{ needs.version.outputs.jicofo_version }}
74+
- Web = ${{ needs.version.outputs.web_version }}
75+
- JVB = ${{ needs.version.outputs.jvb_version }}
76+
- Jibri = ${{ needs.version.outputs.jibri_version }}
77+
- Jigasi = ${{ needs.version.outputs.jigasi_version }}
2478
- name: release
2579
uses: softprops/action-gh-release@v2
2680
with:

0 commit comments

Comments
 (0)