Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
357 commits
Select commit Hold shift + click to select a range
1ab5158
test
emphasize Feb 1, 2024
edbeb4e
test
emphasize Feb 1, 2024
a5b8eec
test
emphasize Feb 1, 2024
e2b40e5
test
emphasize Feb 1, 2024
4b858d0
test
emphasize Feb 1, 2024
e335091
test
emphasize Feb 1, 2024
afbc460
test
emphasize Feb 1, 2024
4426abd
test
emphasize Feb 1, 2024
7e82fbb
test
emphasize Feb 1, 2024
f274f7e
test
emphasize Feb 1, 2024
97bfa3c
test
emphasize Feb 1, 2024
635fc1f
test
emphasize Feb 2, 2024
10252eb
toss commented osm test
emphasize Feb 2, 2024
e74e45d
prototype package handling
emphasize Feb 2, 2024
87c2f51
ensure correct working dir
emphasize Feb 2, 2024
17b643d
resource testing consolidation
emphasize Feb 6, 2024
89189bc
update to use v2 test resource routine
emphasize Feb 6, 2024
1b00df0
readme fixes
emphasize Feb 6, 2024
020c430
test
emphasize Feb 7, 2024
bc3379b
test
emphasize Feb 7, 2024
a4dcd45
test
emphasize Feb 7, 2024
85552e1
test
emphasize Feb 7, 2024
fc2fb42
test
emphasize Feb 7, 2024
759957d
test
emphasize Feb 7, 2024
4f0458d
test
emphasize Feb 7, 2024
9377802
test
emphasize Feb 7, 2024
bafd49d
test
emphasize Feb 7, 2024
54678ad
test
emphasize Feb 7, 2024
23b33bc
test
emphasize Feb 7, 2024
35728eb
split scripts
emphasize Feb 8, 2024
6e0af6a
test
emphasize Feb 8, 2024
365e146
test
emphasize Feb 8, 2024
a5bb4ee
test
emphasize Feb 8, 2024
fe760b1
adjust readme
emphasize Feb 8, 2024
aef6aec
test
emphasize Feb 8, 2024
d7b398a
test
emphasize Feb 8, 2024
ad4598c
test
emphasize Feb 8, 2024
f2f6e81
license checking include pre releases
emphasize Feb 8, 2024
402c407
license checking add verbosity
emphasize Feb 8, 2024
a0e01cd
conventional commits
emphasize Feb 20, 2024
8b243f8
readme adjustments
emphasize Feb 20, 2024
4236154
readme
emphasize Feb 20, 2024
d04b554
readme edits
emphasize Feb 20, 2024
3e4c2b8
readme edits
emphasize Feb 20, 2024
09dc5b4
tests
emphasize Feb 20, 2024
0398bb6
tests
emphasize Feb 21, 2024
8f8a620
tests
emphasize Feb 21, 2024
15c9576
tests
emphasize Feb 21, 2024
09f1ce2
tests
emphasize Feb 21, 2024
503c536
tests
emphasize Feb 21, 2024
7e70338
tests
emphasize Feb 21, 2024
10919d9
tests
emphasize Feb 21, 2024
7af13f1
tests
emphasize Feb 21, 2024
1f9b505
tests
emphasize Feb 21, 2024
ea835a2
tests
emphasize Feb 21, 2024
554ff1b
tests
emphasize Feb 25, 2024
a487e56
tests
emphasize Feb 25, 2024
8606df7
tests
emphasize Feb 25, 2024
5214d25
tests
emphasize Feb 25, 2024
0a9d56e
tests
emphasize Feb 25, 2024
e4fd5e4
tests
emphasize Feb 25, 2024
77e94e1
tests
emphasize Feb 26, 2024
fcd2593
tests
emphasize Feb 26, 2024
59003b1
tests
emphasize Feb 26, 2024
e26a97a
tests
emphasize Feb 26, 2024
fc5beb6
fix: bump
emphasize Feb 26, 2024
55ccf22
tests
emphasize Feb 26, 2024
48f3114
tests
emphasize Feb 26, 2024
b280d4e
tests
emphasize Feb 26, 2024
901b2e7
tests
emphasize Feb 26, 2024
1b54fc8
tests
emphasize Feb 26, 2024
1d3e1fc
tests
emphasize Feb 26, 2024
b49f5ee
tests
emphasize Feb 26, 2024
3706beb
adjusted semver cycle script
emphasize Feb 27, 2024
1d0fc89
fix cycle script
emphasize Feb 27, 2024
5f9329d
tests
emphasize Feb 27, 2024
f7690ba
tests
emphasize Feb 27, 2024
293a360
tests
emphasize Feb 27, 2024
9a3de39
fixes
emphasize Feb 27, 2024
1a1832c
tests
emphasize Feb 27, 2024
06e56e5
tests
emphasize Feb 27, 2024
8a6e44b
tests
emphasize Feb 28, 2024
1009b98
release version script
emphasize Feb 28, 2024
f849971
release cycle script
emphasize Feb 28, 2024
8989922
tests
emphasize Feb 28, 2024
98dc9c2
release version script
emphasize Feb 28, 2024
fb7c188
coming close
emphasize Mar 5, 2024
174e685
tests
emphasize Mar 6, 2024
40322a1
tests
emphasize Mar 6, 2024
c2931b1
tests
emphasize Mar 6, 2024
1fad698
tests
emphasize Mar 6, 2024
c8c8e2a
tests
emphasize Mar 6, 2024
1bb2e77
tests
emphasize Mar 6, 2024
2f96d1f
tests
emphasize Mar 6, 2024
68411e6
tests
emphasize Mar 6, 2024
c0ffefd
tests
emphasize Mar 6, 2024
a4a17d7
tests
emphasize Mar 6, 2024
7f36f1b
tests
emphasize Mar 6, 2024
a745f15
tests
emphasize Mar 6, 2024
c4a4975
tests
emphasize Mar 6, 2024
9e0dda9
tests
emphasize Mar 6, 2024
917788b
tests
emphasize Mar 6, 2024
cf9d9c3
tests
emphasize Mar 6, 2024
0a6a87a
tests
emphasize Mar 6, 2024
cea9f6b
tests
emphasize Mar 6, 2024
14952a6
tests
emphasize Mar 6, 2024
ad10552
tests
emphasize Mar 7, 2024
7ec9b4c
tests
emphasize Mar 7, 2024
4e5bab5
tests
emphasize Mar 7, 2024
3e2a51c
tests
emphasize Mar 7, 2024
a260b12
tests
emphasize Mar 7, 2024
34104fe
tests
emphasize Mar 7, 2024
98e778a
tests
emphasize Mar 7, 2024
5bc95f4
tests
emphasize Mar 7, 2024
3da2629
tests
emphasize Mar 7, 2024
7077640
tests
emphasize Mar 8, 2024
032df84
tests
emphasize Mar 8, 2024
b16f922
tests
emphasize Mar 8, 2024
376e9de
tests
emphasize Mar 8, 2024
d8eee7c
tests
emphasize Mar 8, 2024
97272d5
tetst
emphasize Mar 8, 2024
c5610c3
tests
emphasize Mar 8, 2024
07dc45c
tests
emphasize Mar 8, 2024
26a0579
tests
emphasize Mar 8, 2024
cc7fc25
tests
emphasize Mar 8, 2024
8588385
tests
emphasize Mar 8, 2024
adfe690
tests
emphasize Mar 10, 2024
811c3a6
tests
emphasize Mar 12, 2024
80b4363
tests
emphasize Mar 12, 2024
7238983
tests
emphasize Mar 12, 2024
582dec9
tests
emphasize Mar 12, 2024
04aadd9
tests
emphasize Mar 12, 2024
4423dea
tests
emphasize Mar 13, 2024
b8ceb2e
tests
emphasize Mar 13, 2024
97867f5
test
emphasize Mar 13, 2024
aa20eac
tests
emphasize Mar 13, 2024
6f23c15
tests
emphasize Mar 14, 2024
2785469
tests
emphasize Mar 14, 2024
8a4e90d
tests
emphasize Mar 14, 2024
f7da584
tests
emphasize Mar 14, 2024
36ace76
tests
emphasize Mar 14, 2024
391e97b
tests
emphasize Mar 14, 2024
7dea1fb
tests
emphasize Mar 14, 2024
f74d243
tests
emphasize Mar 14, 2024
581437e
tests
emphasize Mar 14, 2024
09cd260
tests
emphasize Mar 14, 2024
2de9e9e
tests
emphasize Mar 15, 2024
38664f5
tests
emphasize Mar 15, 2024
3f48730
tests
emphasize Mar 15, 2024
a86975b
tests
emphasize Mar 15, 2024
a6ed4a3
tests
emphasize Mar 15, 2024
e66d8eb
tests
emphasize Mar 15, 2024
d6376a2
tests
emphasize Mar 15, 2024
e68f64e
tests
emphasize Mar 15, 2024
b9972a5
tests
emphasize Mar 15, 2024
f83d52e
tests
emphasize Mar 15, 2024
5a82c89
tests
emphasize Mar 15, 2024
a739a15
tests
emphasize Mar 15, 2024
68c76e6
tests
emphasize Mar 15, 2024
f7cbe83
tests
emphasize Mar 15, 2024
c2c9476
tests
emphasize Mar 15, 2024
6338d26
tests
emphasize Mar 15, 2024
56825bf
tests
emphasize Mar 15, 2024
84b08bd
tests
emphasize Mar 16, 2024
6cd6025
tests
emphasize Mar 16, 2024
ae5c5f5
tests
emphasize Mar 16, 2024
03132af
tests
emphasize Mar 16, 2024
e6503f5
tests
emphasize Mar 16, 2024
0ef4fed
tests
emphasize Mar 16, 2024
738c636
tests
emphasize Mar 16, 2024
86e9bb1
tests
emphasize Mar 16, 2024
f8b1d0d
tests
emphasize Mar 16, 2024
ecc7214
tests
emphasize Mar 16, 2024
c6eefbb
tests
emphasize Mar 17, 2024
a05234d
tests
emphasize Mar 17, 2024
394d380
tests
emphasize Mar 17, 2024
87c468d
tests
emphasize Mar 17, 2024
9f7a617
tests
emphasize Mar 17, 2024
7331750
tests
emphasize Mar 17, 2024
395184a
tests
emphasize Mar 17, 2024
9e5b380
tests
emphasize Mar 17, 2024
1cb896b
tests
emphasize Mar 17, 2024
e860e80
tests
emphasize Mar 17, 2024
e4a72cd
tests
emphasize Mar 17, 2024
5f5b143
tests
emphasize Mar 17, 2024
d548019
tests
emphasize Mar 17, 2024
0c6ff8a
tests
emphasize Mar 17, 2024
3401b0e
tests
emphasize Mar 17, 2024
28a88a8
tests
emphasize Mar 17, 2024
6bc327a
tests
emphasize Mar 17, 2024
fda3548
tests
emphasize Mar 17, 2024
cd78e6d
tests
emphasize Mar 18, 2024
7790f8c
tests
emphasize Mar 18, 2024
f83377d
tests
emphasize Mar 18, 2024
5cd569c
tests
emphasize Mar 18, 2024
af0ed6b
tests
emphasize Mar 18, 2024
49f37e5
tests
emphasize Mar 18, 2024
bc86c78
tests
emphasize Mar 18, 2024
f464ee1
tests
emphasize Mar 18, 2024
ec460b4
tests
emphasize Mar 18, 2024
11205e3
tests
emphasize Mar 18, 2024
b650320
tests
emphasize Mar 18, 2024
83b95a7
tests
emphasize Mar 18, 2024
84576d0
tests
emphasize Mar 18, 2024
48a4407
tests
emphasize Mar 23, 2024
855792d
tests
emphasize Mar 23, 2024
7906d0a
tests
emphasize Mar 23, 2024
a402bba
tests
emphasize Mar 23, 2024
028efde
tests
emphasize Mar 23, 2024
fa266e8
tests
emphasize Mar 23, 2024
89a2801
tests
emphasize Mar 23, 2024
dd0de49
tests
emphasize Mar 23, 2024
28a279e
tests
emphasize Mar 23, 2024
d9c0084
tests
emphasize Mar 24, 2024
a5aaf2e
tests
emphasize Mar 25, 2024
708fcc8
tests
emphasize Mar 26, 2024
9993a5b
tests
emphasize Mar 26, 2024
81035cb
tests
emphasize Mar 26, 2024
ef06d3a
tests
emphasize Mar 26, 2024
957750a
tests
emphasize Mar 26, 2024
671462f
tests
emphasize Mar 26, 2024
f2add89
tests
emphasize Mar 26, 2024
e6996cc
tests
emphasize Mar 26, 2024
d11cf69
tests
emphasize Mar 26, 2024
19d73c8
tests
emphasize Mar 26, 2024
b3e5cc5
tests
emphasize Mar 26, 2024
a09d566
tests
emphasize Mar 27, 2024
e3ca54c
tests
emphasize Mar 27, 2024
240cc7e
tests
emphasize Mar 27, 2024
cad2ff8
tests
emphasize Mar 27, 2024
085bfb6
tests
emphasize Mar 27, 2024
f3f762e
tests
emphasize Mar 27, 2024
b10cc34
tests
emphasize Mar 27, 2024
4100827
tests
emphasize Mar 27, 2024
545dff6
tests
emphasize Mar 27, 2024
3e6fc21
tests
emphasize Mar 27, 2024
8cb802f
tests
emphasize Mar 27, 2024
c4ddf14
tests
emphasize Mar 27, 2024
10a9919
tests
emphasize Mar 27, 2024
94ff60c
tests
emphasize Mar 27, 2024
1642d72
tests
emphasize Mar 27, 2024
664a0da
tests
emphasize Mar 27, 2024
6a10d64
tests
emphasize Mar 28, 2024
9b38c7b
tests
emphasize Mar 28, 2024
41e522f
tests
emphasize Mar 28, 2024
e2e51c9
tests
emphasize Mar 28, 2024
48bfd1f
tests
emphasize Mar 29, 2024
e220fef
tests
emphasize Mar 29, 2024
1b3b68c
tests
emphasize Mar 29, 2024
e57c294
tests
emphasize Apr 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/actions/notify_testing_matrix/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Notify Matrix Chat'
description: 'Send a message to a Matrix chat room'
inputs:
matrix_token:
description: 'The token to use to authenticate with the Matrix server'
required: true
subject:
description: 'Subject of the message'
default: 'no subject'
release_type:
description: 'Type of the release'
required: true
version:
description: 'The version of the release'
default: "version unknown"
repository:
description: 'The repository that triggered the action'

runs:
using: 'composite'
steps:
- name: Send message to Matrix
uses: fadenb/matrix-chat-message@v0.0.6
with:
homeserver: 'matrix.org'
token: ${{ inputs.matrix_token }}
channel: '!WjxEKjjINpyBRPFgxl:krbel.duckdns.org'
message: "Testing QA phase in repo ${{ inputs.repository }} of a ${{ inputs.release_type }} release (${{ inputs.version }}) started. Subject to test: ${{ inputs.subject }}"
58 changes: 58 additions & 0 deletions .github/workflows/auto_translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Auto translate
on:
workflow_call:
inputs:
branch:
description: 'The branch to checkout and run the action in'
type: string
default: ${{ github.ref }}
action_branch:
description: 'The shared action branch to checkout'
type: string
default: main
python_version:
description: 'The python version to use'
type: string
default: "3.8"
locale_folder:
description: 'The base folder to look for localization files'
type: string
default: locale


jobs:
autotranslate:
env:
API_KEY: ${{secrets.DL_API_KEY}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this API key? Is it something that should be available as an org secret?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is DeepL. I'm not sure if usage will fit into the free tier with more than a few active repos so the org might need a paid key to implement this everywhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

free tier (500k) api key. not quite clear about the irritation.

LOCALE_FOLDER: ${{ github.workspace }}/action/package/${{ inputs.locale_folder }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
ref: ${{ inputs.branch }}
path: action/package/
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
repository: OpenVoiceOS/.github
ref: ${{ inputs.action_branch }}
path: action/github/
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
- name: Install Translate Tools
run: |
python -m pip install -r action/github/requirements/pip_translation.txt
- name: Auto Translate
run: |
python action/github/scripts/translate.py
- name: Commit to dev
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "fix(localisation): autotranslate common languages"
repository: action/package/
59 changes: 59 additions & 0 deletions .github/workflows/check_conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: License Tests
on:
workflow_call:
inputs:
runner:
description: 'Runner to use'
type: string
default: 'ubuntu-latest'
branch:
description: 'Branch to check out'
type: string
default: ${{ github.ref }}
action_branch:
description: 'Branch to check out'
type: string
default: main
custom_labels:
description: 'Custom labels to use'
type: string
default: '{}'
pr_number:
description: 'Optional pull request number'
type: string
default: ''
error_on_failure:
description: 'Throws an error if the title not adheres to Conventional Commit format or testing phase is ongoing'
type: boolean
default: false

jobs:
validate-pr-title:
runs-on: ${{ inputs.runner }}
env:
GH_PAT: ${{ secrets.GH_PAT }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_LABELS: ${{ inputs.custom_labels }}
PR_NUMBER: ${{ inputs.pr_number }}
ERROR_ON_FAILURE: ${{ inputs.error_on_failure }}
TEST_PHASE_CACHE: ${{ github.workspace }}/test-status
PCCC_CONFIG_FILE: ${{ github.workspace }}/pccc.toml
steps:
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
repository: OpenVoiceOS/.github
ref: ${{ inputs.action_branch }}
- name: Install Python Requirements
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.workspace }}/requirements/pip_base.txt
- name: Get Cached Test Status
uses: actions/cache@v2
with:
path: test-status
key: test-status-${{ runner.os }}
- name: Status Check
run: |
python scripts/check_PRs.py

25 changes: 25 additions & 0 deletions .github/workflows/check_supported_py_versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check Supported Python Versions

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
update-versions:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Run Python Version Check Script
run:
python scripts/check_supported_py_versions.py
- name: Commit and Push if Changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add supported_py_versions.json
git commit -m "Update Supported Python Versions" || exit 0 # Exit gracefully if no changes
git push
33 changes: 33 additions & 0 deletions .github/workflows/clear_test_phase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
workflow_call:

jobs:
clear_test_flag:
runs-on: ubuntu-latest
# set cached test status to complete
steps:
- name: Set test status
run: |
echo "complete" > test-status
- name: Delete Test Tracking Cache
run: |
gh extension install actions/gh-actions-cache

echo "Fetching list of cache key"
cacheKeys=$(gh actions-cache list -R ${{ github.repository }} -L 100 | cut -f 1 )

## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeys
do
gh actions-cache delete $cacheKey -R ${{ github.repository }} --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
- name: Cache test status
uses: actions/cache@v2
with:
path: test-status
key: test-status-${{ runner.os }}
97 changes: 97 additions & 0 deletions .github/workflows/license_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: License Tests
on:
workflow_call:
inputs:
runner:
description: 'Runner to use'
type: string
default: 'ubuntu-latest'
branch:
description: 'Branch to check out'
type: string
default: ${{ github.ref }}
action_branch:
description: 'The shared action branch to checkout'
type: string
default: main
python_version:
description: 'Python version to use'
type: string
default: '3.8'
system_deps:
description: 'Additional system dependencies (whitespace delimited) to install'
required: false
type: string
pip_packages:
description: 'Additional Python packages (whitespace delimited) to install'
type: string
required: false
install_extras:
description: 'Optional extras to install the python package with'
required: false
type: string
packages-exclude:
description: 'Regex to exclude packages from the license check'
type: string
default: '^(precise-runner|fann2|tqdm|bs4|nvidia|bitstruct).*'
licenses-exclude:
description: 'Regex to exclude licenses from the license check'
type: string
default: '^(Mozilla).*$'
jobs:
license_tests:
timeout-minutes: 15
runs-on: ${{ inputs.runner }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
path: action/package/
- name: Checkout Scripts Repo
uses: actions/checkout@v4
with:
path: action/github/
ref: ${{ inputs.action_branch }}
repository: OpenVoiceOS/.github
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
- name: Install Custom System Dependencies
if: ${{ inputs.system_deps != null }}
run: |
sudo apt update
sudo apt install -y ${{ inputs.system_deps }}
- name: upgrade pip
run: |
pip install --upgrade pip
- name: Install Custom Python Requirements
if: ${{ inputs.pip_packages != null }}
run: |
pip install ${{ inputs.pip_packages }}
- name: Install repo
run: |
cd ${{ github.workspace }}/action/package
if [ -z ${{ inputs.install_extras }} ]; then
pip install .
else
pip install .[${{ inputs.install_extras }}]
fi
- name: Get explicit and transitive dependencies
run: |
pip freeze > requirements-all.txt
- name: Check licenses
id: license_check_report
uses: pilosus/action-pip-license-checker@v2
with:
requirements: 'requirements-all.txt'
fail: 'Copyleft,Other,Error'
fails-only: true
pre: true
verbose: 2
exclude: ${{ inputs.packages-exclude }}
exclude-license: ${{ inputs.licenses-exclude }}
- name: Print report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}"
30 changes: 30 additions & 0 deletions .github/workflows/notify_pr_matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Notify Matrix Chat

# only triggers on pull request closed events
on:
workflow_call:
inputs:
pr_id:
type: number
required: true
subject:
type: string
default: ''

jobs:
notify_pr_matrix:
runs-on: ubuntu-latest
steps:
- name: Get repo
run: |
echo REPO=$(echo ${{ github.repository}} | cut -d '/' -f 2) >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Send message to Matrix bots channel
id: matrix-chat-message
uses: fadenb/matrix-chat-message@v0.0.6
with:
homeserver: 'matrix.org'
token: ${{ secrets.MATRIX_TOKEN }}
channel: '!WjxEKjjINpyBRPFgxl:krbel.duckdns.org'
message: |
${{ inputs.subject }} PR merged! (${{ env.REPO }}) [PR](https://github.com/${{ github.repository }}/pull/${{ inputs.pr_id }})
29 changes: 29 additions & 0 deletions .github/workflows/notify_testing_matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Notify Matrix Chat (Test State)

# only triggers on pull request closed events
on:
workflow_call:
inputs:
subject:
type: string
default: 'no subject'
release_type:
type: string
required: true
version:
type: string
description: 'The version of the release'
default: 'version unknown'

jobs:
notify_pr_matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Send message to Matrix bots channel
uses: fadenb/matrix-chat-message@v0.0.6
with:
homeserver: 'matrix.org'
token: ${{ secrets.MATRIX_TOKEN }}
channel: '!WjxEKjjINpyBRPFgxl:krbel.duckdns.org'
message: "Testing QA phase of a ${{ inputs.release_type }} release (${{ inputs.version }}) started (${{ github.repository }}). Subject to test: ${{ inputs.subject }}"
Loading