Skip to content

Commit cf3a79a

Browse files
committed
tag-and-release: Add ignore-paths and more-ignore-paths - 3
1 parent 6cc9ee0 commit cf3a79a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/tag-and-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,18 @@ jobs:
128128
EXTRA: ${{ inputs.more-ignore-paths }}
129129
run: |
130130
set -euo pipefail; echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
131-
132131
python -c '
133-
import os, json
132+
import os
134133
135134
base = [ln.strip() for ln in os.environ["BASE"].splitlines() if ln.strip()]
136135
extra = [ln.strip() for ln in os.environ["EXTRA"].splitlines() if ln.strip()]
137136
138-
combined = base + extra
137+
combined_str = "\n".join(base + extra)
139138
140-
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
139+
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as f:
141140
f.write("value<<EOF\n")
142-
f.write(combined_str + "\n")
143-
f.write("EOF\n")
141+
f.write(combined_str)
142+
f.write("\nEOF\n")
144143
'
145144
146145
- name: Determine next version

0 commit comments

Comments
 (0)