Skip to content

Commit 160906a

Browse files
d-perlwakonig
authored andcommitted
fix: python env in create_update_pr
1 parent 3e4aa70 commit 160906a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

template/.gitea/workflows/create_update_pr.yml.jinja

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: '3.12'
20-
20+
2121
- name: Install tools
2222
run: |
23-
pip install copier PySide6
23+
pip install copier PySide6 bec_lib
2424

2525
- name: Checkout
2626
uses: actions/checkout@v4
27-
27+
2828
- name: Perform update
2929
run: |
3030
git config --global user.email "bec_ci_staging@psi.ch"
@@ -35,8 +35,10 @@ jobs:
3535
git checkout -b $branch
3636

3737
echo "Running copier update..."
38-
output="$(copier update --trust --defaults --conflict inline 2>&1)"
39-
echo "$output"
38+
copier update --trust --defaults --conflict inline 2>&1 | tee copier.log
39+
status=${PIPESTATUS[0]}
40+
output="$(cat copier.log)"
41+
echo $output
4042
msg="$(printf '%s\n' "$output" | head -n 1)"
4143

4244
if ! grep -q "make_commit: true" .copier-answers.yml ; then

0 commit comments

Comments
 (0)