Skip to content
Open
Show file tree
Hide file tree
Changes from 119 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
55 changes: 55 additions & 0 deletions .github/workflows/auto_translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
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@v4
with:
commit_message: autotranslate
repository: action/package/
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
90 changes: 90 additions & 0 deletions .github/workflows/license_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
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: 'System dependencies (whitespace delimited) to install instead of sys_deb_common_deps.txt'
required: false
type: string
package-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 Build Tools
run: |
python -m pip install build wheel
- name: Install System Dependencies
run: |
sudo apt-get update
if [ -z ${{ inputs.system-deps }} ]; then
xargs sudo apt-get install -y < ${{ github.workspace }}/action/github/requirements/sys_deb_common_deps.txt
else
sudo apt-get install ${{ inputs.system-deps }}
fi
- name: Install repo
run: |
cd ${{ github.workspace }}/action/package
if [ -z ${{ inputs.package-extras }} ]; then
pip install .
else
pip install .[${{ inputs.package-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
exclude: ${{ inputs.packages-exclude }}
exclude-license: ${{ inputs.licenses-exclude }}
- name: Print report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}"
24 changes: 24 additions & 0 deletions .github/workflows/notify_pr_matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Notify Matrix Chat

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

jobs:
notify_pr_matrix:
runs-on: ubuntu-latest
steps:
- 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: |
new ${{ github.repository }} PR merged! https://github.com/${{ github.repository }}/pull/${{ inputs.pr_id }}
125 changes: 125 additions & 0 deletions .github/workflows/propose_semver_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Propose SemVer Release
on:
workflow_call:
inputs:
branch:
type: string
default: dev
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"
version_file:
description: 'The file location to read the version from'
type: string
default: version.py
release_type:
type: string
description: 'The type of release to make'
required: true
changelog_file:
type: string
default: CHANGELOG.md


jobs:
bump_version:
runs-on: ubuntu-latest
env:
VERSION_FILE: ${{ github.workspace }}/action/package/${{ inputs.version_file }}
TARGET_BRANCH: ${{ inputs.release_type == 'patch' && 'testing' || 'stable' }}
GITHUB_REPOSITORY: ${{ github.repository }}
RELEASE_TYPE: ${{ inputs.release_type }}
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 Python Dependencies
run: |
pip install -r ${{ github.workspace }}/action/github/requirements/pip_base.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Is inputs.action_branch defined in your call? Looks like you'll need to pass this branch to the workflow call as an input

Copy link
Collaborator Author

@emphasize emphasize Feb 22, 2024

Choose a reason for hiding this comment

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

Don't bother with release workflows at all.

Like we have established, the workflows have to be rewritten to fit the new flow.
(plus adjustments because of the conventional commit concept)
As this is WIP anyhow i don't suggest adopting it to a productive environment.
inputs, variables and names in general will change.

The action_branch is needed as the correct (script) branch has to be checked out (we are working on a feature branch after all)

- name: Set up Git Authentication
run: |
cd ${{ github.workspace }}/action/package/
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- name: Create Branch (if necessary)
run: |
cd ${{ github.workspace }}/action/package/
git fetch --unshallow origin ${{ inputs.branch }}
INITIAL_COMMIT=$(git rev-list --max-parents=0 ${{ inputs.branch }})
TARGET_BRANCH_EXISTS=$(git ls-remote --heads origin ${{ env.TARGET_BRANCH }} | wc -l)
if [ "$TARGET_BRANCH_EXISTS" -eq "0" ]; then
git checkout $INITIAL_COMMIT
git checkout -b ${{ env.TARGET_BRANCH }}
git push origin ${{ env.TARGET_BRANCH }} --force
git checkout ${{ inputs.branch }}
fi
- name: Increment Version
id: version
run: |
python action/github/scripts/bump_${{ inputs.release_type }}.py
VERSION=$(python action/package/setup.py --version)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Push Version Change
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Increment Version to ${{ env.VERSION }}
repository: action/package/
- name: Check Latest Release
run: |
SINCE_TAG=$(python action/github/scripts/semver_cycle_start.py)
echo "SINCE_TAG=${SINCE_TAG}" >> $GITHUB_ENV
- name: Generate Changelog
id: changelog
uses: heinrichreimer/github-changelog-generator-action@v2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
output: action/package/${{ inputs.changelog_file }}
futureRelease: ${{ env.VERSION }}
sinceTag: ${{ env.SINCE_TAG }}
- name: Push Changelog
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Changelog
repository: action/package/
- name: Checkout Testing Branch
uses: actions/checkout@v4
with:
ref: ${{ env.TARGET_BRANCH }}
path: action/package/
- name: Rebase Latest Changes
run: |
cd ${{ github.workspace }}/action/package/
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git fetch origin ${{ inputs.branch }}
git rebase FETCH_HEAD
- name: Create Pull Request to ${{ env.TARGET_BRANCH }}
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: action/package/
commit-message: "Propose ${{ inputs.release_type }} release"
title: "Propose ${{ inputs.release_type }} release"
body: |
This pull request proposes a ${{ env.TARGET_BRANCH }} release of the project.
Please review the changelog and merge if it looks good.
branch: staging_${{ inputs.release_type }}_release
base: ${{ env.TARGET_BRANCH }}
draft: false
assignees: ${{ github.actor }}
32 changes: 32 additions & 0 deletions .github/workflows/propose_semver_release_merged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rebase dev after SemVer bump

# only triggers on pull request closed events
on:
workflow_call:
inputs:
release_type:
type: string
description: 'The type of release to make'
required: true

jobs:
rebase_dev:
env:
SOURCE_BRANCH: ${{ inputs.release_type == 'patch' && 'testing' || 'stable' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "dev"
fetch-depth: 0
- name: Set up Git Authentication
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
- name: Rebase testing onto dev
run: |
git fetch origin ${{ env.SOURCE_BRANCH }}
git rebase origin/${{ env.SOURCE_BRANCH }}
- name: Push changes
run: |
git push origin dev
Loading