File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
- examples /input_data /* .nc filter =lfs diff =lfs merge =lfs - text
2
1
tests /fixture /temperature_simh.zarr filter =lfs diff =lfs merge =lfs - text
3
2
tests /fixture /temperature_simp.zarr filter =lfs diff =lfs merge =lfs - text
4
3
tests /fixture /precipitation_obsh.zarr filter =lfs diff =lfs merge =lfs - text
Original file line number Diff line number Diff line change 32
32
with :
33
33
fetch-depth : 0 # IMPORTANT: otherwise the current tag does not get fetched and the build version gets worse
34
34
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
+
35
45
- name : Set up Python 3.11
36
46
uses : actions/setup-python@v4
37
47
with :
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ jobs:
105
105
if : |
106
106
success() &&
107
107
github.actor == 'btschwertfeger' &&
108
+ github.ref == 'refs/heads/master' &&
108
109
github.event_name == 'release'
109
110
needs : [Test]
110
111
name : Upload the current release to PyPI
You can’t perform that action at this time.
0 commit comments