Skip to content

Commit d6a7971

Browse files
authored
Bugfix/586 working directory missing for cache (#587)
* Fix `python-environment` to use working-directory for setup of cache variables * Add SHA of `pyproject.toml` to determine cache key in `python-environment` GitHub action * Prepare release 1.13.0
1 parent a5a359e commit d6a7971

File tree

7 files changed

+26
-18
lines changed

7 files changed

+26
-18
lines changed

.github/actions/python-environment/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,18 @@ runs:
5252

5353
- name: Setup cache variables
5454
id: setup-cache-variables
55+
working-directory: ${{ inputs.working-directory }}
5556
shell: bash
5657
run: |
5758
echo "ImageOS=$ImageOS"
5859
echo "ImageVersion=$ImageVersion"
5960
POETRY_ENV_PATH=$(poetry config virtualenvs.path)
60-
POETRY_SHA=$(sha256sum poetry.lock | awk '{print $1}') #Remove trailing filename
61-
echo "POETRY_ENV_PATH=$POETRY_ENV_PATH" >> $GITHUB_OUTPUT
61+
POETRY_SHA=$(cat pyproject.toml poetry.lock | sha256sum | cut -f 1 -d " ") #Remove trailing dash
62+
# output to GITHUB_OUTPUT
6263
echo "IMAGE_OS=$ImageOS" >> $GITHUB_OUTPUT
6364
echo "IMAGE_VERSION=$ImageVersion" >> $GITHUB_OUTPUT
65+
echo "POETRY_ENV_PATH=$POETRY_ENV_PATH" >> $GITHUB_OUTPUT
6466
echo "POETRY_SHA=$POETRY_SHA" >> $GITHUB_OUTPUT
65-
6667
6768
- name: Cache Poetry environment
6869
if: inputs.use-cache == 'true'

.github/actions/security-issues/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939
- name: Install Python Toolbox / Security tool
4040
shell: bash
4141
run: |
42-
pip install exasol-toolbox==1.12.0
42+
pip install exasol-toolbox==1.13.0
4343
4444
- name: Create Security Issue Report
4545
shell: bash

doc/changes/changelog.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/changes_1.13.0.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# 1.13.0 - 2025-10-31
2+
3+
## Summary
4+
5+
This releases fixes Nox session `release:prepare` for multi-project repositories and
6+
fixes the `python-environment` GitHub action to also use the `working-directory`
7+
and `pyproject.toml` setting the cache variables.
8+
9+
## Bugfixes
10+
11+
* #580: Fixed Nox session `release:prepare` for multi-project repositories
12+
* #586: Fixed `python-environment` GitHub action to use `working-directory` for setup of cache variables
13+
* #559: Added SHA of `pyproject.toml` to determine cache key in `python-environment` GitHub action
14+
15+
## Features
16+
17+
* #485: Improved nox task `release:trigger`

doc/changes/unreleased.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
11
# Unreleased
2-
3-
## Summary
4-
5-
This releases fixes Nox session `release:prepare` for multi-project repositories.
6-
7-
## Bugfixes
8-
9-
* #580: Fixed Nox session `release:prepare` for multi-project repositories
10-
11-
## Features
12-
13-
* #485: Improved nox task `release:trigger`

exasol/toolbox/version.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "exasol-toolbox"
3-
version = "1.12.0"
3+
version = "1.13.0"
44
requires-python = ">=3.9.2,<4.0"
55
description = "Your one-stop solution for managing all standard tasks and core workflows of your Python project."
66
authors = [

0 commit comments

Comments
 (0)