Skip to content

Commit

Permalink
fix sed, git diff patience
Browse files Browse the repository at this point in the history
  • Loading branch information
tobijdc committed Feb 21, 2024
1 parent c09e542 commit 3d14f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aligulac-import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ 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
run: cat players250.js
- 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'
Expand Down

0 comments on commit 3d14f31

Please sign in to comment.