This commit is contained in:
Ing 2023-04-28 23:41:06 +08:00
parent b8b0137271
commit 68073f4a29
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ on:
default: true default: true
type: boolean type: boolean
jobs: jobs:
build: configs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -51,7 +51,7 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: grub name: configs
path: | path: |
files/board/arpl/overlayfs/opt/arpl/model-configs files/board/arpl/overlayfs/opt/arpl/model-configs
rss.json rss.json

View File

@ -228,13 +228,13 @@ if __name__ == '__main__':
isUpdateConfigs = True isUpdateConfigs = True
isUpdateRss = True isUpdateRss = True
if len(sys.argv) > 2: if len(sys.argv) >= 2:
try: try:
isUpdateConfigs = bool(int(sys.argv[1])) isUpdateConfigs = bool(int(sys.argv[1]))
except ValueError: except ValueError:
isUpdateConfigs = bool(sys.argv[1]) isUpdateConfigs = bool(sys.argv[1])
if len(sys.argv) > 3: if len(sys.argv) >= 3:
try: try:
isUpdateRss = bool(int(sys.argv[2])) isUpdateRss = bool(int(sys.argv[2]))
except ValueError: except ValueError: