Skip to content

Commit ed4d580

Browse files
fix the dirty workspace error
1 parent 3d0534a commit ed4d580

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
examples/input_data/*.nc filter=lfs diff=lfs merge=lfs -text
21
tests/fixture/temperature_simh.zarr filter=lfs diff=lfs merge=lfs -text
32
tests/fixture/temperature_simp.zarr filter=lfs diff=lfs merge=lfs -text
43
tests/fixture/precipitation_obsh.zarr filter=lfs diff=lfs merge=lfs -text

.github/workflows/_pypi_publish.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ jobs:
3232
with:
3333
fetch-depth: 0 # IMPORTANT: otherwise the current tag does not get fetched and the build version gets worse
3434

35+
- name: Check Git status
36+
run: |
37+
if [[ -z "$(git status --porcelain)" ]]; then
38+
echo "No changes found."
39+
else
40+
echo "Changes detected. Please commit or discard changes before publishing."
41+
git status --porcelain
42+
exit 1
43+
fi
44+
3545
- name: Set up Python 3.11
3646
uses: actions/setup-python@v4
3747
with:

.github/workflows/cicd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
if: |
106106
success() &&
107107
github.actor == 'btschwertfeger' &&
108+
github.ref == 'refs/heads/master' &&
108109
github.event_name == 'release'
109110
needs: [Test]
110111
name: Upload the current release to PyPI

0 commit comments

Comments
 (0)