-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: NS8 Release on PR Merge to Main | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
paths-ignore: | ||
- '.github/**' | ||
- 'tests/**' | ||
- 'README.md' | ||
- '.gitignore' | ||
- 'LICENSE' | ||
- 'renovate.json' | ||
- 'test-module.sh' | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.NS8_MODULE_RELEASES_TOKEN }} | ||
|
||
jobs: | ||
release-module: | ||
if: > | ||
github.event.pull_request.merged == true && | ||
github.event.pull_request.base.ref == 'main' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install NS8 Release Module Extension | ||
run: gh extension install NethServer/gh-ns8-release-module | ||
|
||
- name: Create Testing Release | ||
run: gh ns8-release-module create --repo ${{ github.repository }} --testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Label PR from Weblate" | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
jobs: | ||
label-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check if PR is from Weblate | ||
id: check_weblate | ||
run: | | ||
if [[ "${{ github.event.pull_request.user.login }}" == "weblate" ]]; then | ||
echo "from_weblate=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "from_weblate=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Assign label | ||
if: steps.check_weblate.outputs.from_weblate == 'true' | ||
uses: actions/labeler@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: 'translation' |
11 changes: 11 additions & 0 deletions
11
imageroot/events/support-session-started/10enable_siptrace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (C) 2024 Nethesis S.r.l. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# | ||
|
||
exec 1>&2 | ||
set -e | ||
|
||
podman exec kamailio kamcmd siptrace.status on |
11 changes: 11 additions & 0 deletions
11
imageroot/events/support-session-stopped/10disable_siptrace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (C) 2024 Nethesis S.r.l. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# | ||
|
||
exec 1>&2 | ||
set -e | ||
|
||
podman exec kamailio kamcmd siptrace.status off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters