diff --git a/.copier-answers.yml b/.copier-answers.yml index 39bfe07..aa1b097 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -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 diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ab4aa4c..6d8f776 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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: | diff --git a/.gitea/workflows/create_update_pr.yml b/.gitea/workflows/create_update_pr.yml new file mode 100644 index 0000000..b05543a --- /dev/null +++ b/.gitea/workflows/create_update_pr.yml @@ -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 \ No newline at end of file