Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 3415f1c

Browse files
committed
Slight changes to the sed command, and ensuring output is utf-8 on windows
1 parent f02b12e commit 3415f1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/install_requirements/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
3232
mkdir -p lockfiles
3333
pip freeze --exclude-editable > lockfiles/${{ inputs.requirements_file }}
3434
# delete the self referencing line and make sure it isn't blank
35-
sed -i '/file:/d' lockfiles/${{ inputs.requirements_file }}
35+
sed -i'' -e '/file:/d' lockfiles/${{ inputs.requirements_file }}
3636
shell: bash
3737

3838
- name: Upload lockfiles

.github/pages/make_switcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def write_json(path: Path, repository: str, versions: str):
6464
]
6565
text = json.dumps(struct, indent=2)
6666
print(f"JSON switcher:\n{text}")
67-
path.write_text(text)
67+
path.write_text(text, encoding="utf-8")
6868

6969

7070
def main(args=None):

0 commit comments

Comments
 (0)