Skip to content

Commit

Permalink
fix(ci): add new line to end of network endpoint when merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Sep 27, 2022
1 parent 1c185e2 commit d7ab7b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ jobs:
echo "mainnet:" > $TARGET
cat endpoints/mainnet.yaml >> $TARGET
# dump all endpoints into target except for mainnet
for body in endpoints/*.yaml; do filename=$(basename -- ${body%.*}); if [ "$filename" != "mainnet" ]; then echo "\n${filename}:" >> $TARGET; cat "$body" >> $TARGET; fi; done
for body in endpoints/*.yaml; do filename=$(basename -- ${body%.*}); if [ "$filename" != "mainnet" ]; then echo "" >> $TARGET; echo "${filename}:" >> $TARGET; cat "$body" >> $TARGET; echo "" >> $TARGET; fi; done
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- uses: actions/upload-artifact@v3
if: failure()
with:
name: endpoints
path: _data/endpoints.yaml
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
deploy:
Expand Down

0 comments on commit d7ab7b8

Please sign in to comment.