Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a1ad56730 | |||
| 6296b3d809 | |||
| 02db4aca5c | |||
| c66182ce73 | |||
| 679da87ca2 | |||
| 89d6e9148f | |||
| f51e7dbd5b | |||
| 60f67f7c63 | |||
| 8d7713aae2 | |||
| dceb5bf029 | |||
| 633552307e | |||
| 0c5a9861a0 |
+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.1
|
||||
_src_path: https://github.com/bec-project/plugin_copier_template.git
|
||||
make_commit: true
|
||||
project_name: bec_testing_plugin
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Create template upgrade PR for bec_testing_plugin
|
||||
name: Create template upgrade PR for {{ project_name }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -16,19 +16,23 @@ jobs:
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create virtualenv
|
||||
run: |
|
||||
python -m virtualenv .venv
|
||||
python -m virtualenv .venv
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
pip install copier PySide6 bec_lib
|
||||
echo $(which python)
|
||||
echo $(python -m pip list)
|
||||
python -m pip install copier PySide6 bec_lib
|
||||
echo $(which copier)
|
||||
python -c "import bec_lib; print(bec_lib.__file__)"
|
||||
|
||||
- name: Perform update
|
||||
run: |
|
||||
@@ -41,7 +45,7 @@ jobs:
|
||||
git checkout -b $branch
|
||||
|
||||
echo "Running copier update..."
|
||||
copier update --trust --defaults --conflict inline 2>&1 | tee copier.log
|
||||
python -m copier update --trust --defaults --conflict inline 2>&1 | tee copier.log
|
||||
status=${PIPESTATUS[0]}
|
||||
output="$(cat copier.log)"
|
||||
echo $output
|
||||
@@ -59,8 +63,8 @@ jobs:
|
||||
fi
|
||||
|
||||
git push -u origin $branch
|
||||
curl -X POST "https://gitea.psi.ch/api/v1/repos/${{ gitea.repository }}/pulls" \
|
||||
-H "Authorization: token ${{ secrets.CI_REPO_WRITE }}" \
|
||||
curl -X POST "https://gitea.psi.ch/api/v1/repos/{{ "${{ gitea.repository }}" }}/pulls" \
|
||||
-H "Authorization: token {{ "${{ secrets.CI_REPO_WRITE }}" }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"title\": \"Template: $(echo $msg)\",
|
||||
|
||||
Reference in New Issue
Block a user