From 3d14f318ca9ee89db1246cf0743726a97bd2b3db Mon Sep 17 00:00:00 2001 From: Tobias Ibounig Date: Thu, 22 Feb 2024 00:15:41 +0100 Subject: [PATCH] fix sed, git diff patience --- .github/workflows/aligulac-import.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aligulac-import.yaml b/.github/workflows/aligulac-import.yaml index 6ff5063..3b173a9 100644 --- a/.github/workflows/aligulac-import.yaml +++ b/.github/workflows/aligulac-import.yaml @@ -50,7 +50,7 @@ jobs: - name: Truncated 250 Player Json run: yq '.[0:250]' players.json -o=json > players250.json && yq 'length' players250.json - name: Turn Json files into JS - run: sed -i -e '1s/^/var players = /' -e '$a/;/' players400.json && sed -i -e '1s/^/var players = /' -e '$a/;/' players250.json + run: sed -i -e '1s/^/var players = /' -e '$a;' players400.json && sed -i -e '1s/^/var players = /' -e '$a;' players250.json - name: Rename to js run: mv players400.json players400.js && mv players250.json players250.js - name: Print players250 @@ -58,7 +58,7 @@ jobs: - name: Move to correct location run: mv players400.js assets/js/players400.js && mv players250.js assets/js/players250.js - name: Git Status - run: git config --global diff.algorithm histogram && git status && git diff assets/js/players250.js + run: git config --global diff.algorithm patience && git status && git diff assets/js/players250.js #- name: Commit changes # run: | # git config --global user.name 'GH Action Bot'