Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b5ad6cbd0a |
+1
-1
@@ -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.4.0
|
||||
_commit: v1.3.2
|
||||
_src_path: https://github.com/bec-project/plugin_copier_template.git
|
||||
make_commit: true
|
||||
project_name: bec_testing_plugin
|
||||
|
||||
@@ -6,33 +6,50 @@ permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
<<<<<<< before updating
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
=======
|
||||
create_update_branch_and_pr:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
>>>>>>> after updating
|
||||
|
||||
steps:
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
<<<<<<< before updating
|
||||
|
||||
- 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
|
||||
=======
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
pip install copier PySide6 bec_lib
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create virtualenv
|
||||
run: |
|
||||
python -m virtualenv .venv
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
pip install copier PySide6 bec_lib
|
||||
|
||||
- name: Perform update
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
git config --global user.email "bec_ci_staging@psi.ch"
|
||||
git config --global user.name "BEC automated CI"
|
||||
|
||||
@@ -68,3 +85,4 @@ jobs:
|
||||
\"head\": \"$(echo $branch)\",
|
||||
\"base\": \"main\"
|
||||
}"
|
||||
>>>>>>> after updating
|
||||
|
||||
Reference in New Issue
Block a user