Fix YAML indentation and use python instead of python3
This commit is contained in:
+11
-11
@@ -45,17 +45,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate package list
|
- name: Generate package list
|
||||||
run: |
|
run: |
|
||||||
python3 -c "
|
python -c "
|
||||||
import json, os, glob
|
import json, os, glob
|
||||||
pkgs = []
|
pkgs = []
|
||||||
for f in glob.glob('/tmp/pkgout/*.pkg.tar.zst'):
|
for f in glob.glob('/tmp/pkgout/*.pkg.tar.zst'):
|
||||||
name = os.path.basename(f)
|
name = os.path.basename(f)
|
||||||
size = os.path.getsize(f)
|
size = os.path.getsize(f)
|
||||||
pkgs.append({'name': name, 'size': size})
|
pkgs.append({'name': name, 'size': size})
|
||||||
with open('repo/pkglist.json', 'w') as fp:
|
with open('repo/pkglist.json', 'w') as fp:
|
||||||
json.dump(pkgs, fp, indent=2)
|
json.dump(pkgs, fp, indent=2)
|
||||||
fp.write('\n')
|
fp.write('\n')
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Deploy to Pages
|
- name: Deploy to Pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user