Compare commits

1 Commits

Author SHA1 Message Date
39f8ca3b2f Update repo with template version v1.2.2-1-g970ab9d
Some checks failed
CI for bec_testing_plugin / test (push) Failing after 0s
2025-09-15 15:34:41 +02:00
3 changed files with 44 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
# It is needed to track the repo template version, and editing may break things.
# This file will be overwritten by copier on template updates.
_commit: v1.2.2
_commit: v1.2.2-1-g970ab9d
_src_path: https://github.com/bec-project/plugin_copier_template.git
make_commit: true
project_name: bec_testing_plugin

View File

@@ -46,6 +46,17 @@ jobs:
with:
python-version: "${{ inputs.PYTHON_VERSION || '3.11' }}"
- name: Checkout BEC Plugin Repository
uses: actions/checkout@v4
with:
repository: bec/bec_testing_plugin
ref: "${{ inputs.BEC_PLUGIN_REPO_BRANCH || github.head_ref || github.sha }}"
path: ./bec_testing_plugin
- name: Lint for merge conflicts
run: |
- name: Checkout BEC Core
uses: actions/checkout@v4
with:
@@ -67,13 +78,6 @@ jobs:
ref: "${{ inputs.BEC_WIDGETS_BRANCH || 'main' }}"
path: ./bec_widgets
- name: Checkout BEC Plugin Repository
uses: actions/checkout@v4
with:
repository: bec/bec_testing_plugin
ref: "${{ inputs.BEC_PLUGIN_REPO_BRANCH || github.head_ref || github.sha }}"
path: ./bec_testing_plugin
- name: Install dependencies
shell: bash
run: |

View File

@@ -0,0 +1,32 @@
name: Create template upgrade PR for bec_testing_plugin
on:
workflow_dispatch:
permissions:
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install tools
run: |
pip install copier
- name: Checkout
uses: actions/checkout@v4
- name: Perform update
run: |
branch="chore/update-template-$(python -m uuid)"
git checkout -b $branch
msg = $(copier update --trust --defaults --conflict inline 2>&1 | sed -n 1p)
git add -A
git diff-index --quiet HEAD || git commit -a -m $msg
git push -u origin $branch