Skip to content

Commit 095aa2d

Browse files
authored
Merge pull request #149 from wychlw/main
Fix: CI
2 parents b18f2ff + 88f476a commit 095aa2d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/package-index-sync.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
echo "Event Name: ${{ github.event_name }}"
4242
echo "Ref: ${{ github.ref }}"
4343
echo "Repository Owner: ${{ github.repository_owner }}"
44-
echo "Inputs: makepr ${{ inputs.makepr }} debuginfo ${{ inputs.debuginfo }}"
44+
echo "Inputs: makepr ${{ inputs.makepr }} debuginfo ${{ inputs.debuginfo }} force ${{ inputs.force }}"
4545
echo "Should Run Auto: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'ruyisdk' ) }}"
4646
echo "Should Run Manual: ${{ ( github.event_name == 'workflow_dispatch' ) }}"
4747
build:
@@ -86,7 +86,7 @@ jobs:
8686
echo "Generate and PR" > $RUNNER_TEMP/type.txt
8787
export CI_RUN_ID=${{ github.run_id }}
8888
export CI_RUN_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
89-
if [[ ${{ inputs.force }} == 'true' ]]; then
89+
if [[ ${{ ( github.event_name == 'push' || inputs.force ) }} == 'true' ]]; then
9090
python assets/renew_ruyi_index.py -c assets/config.toml -p . -i $RUNNER_TEMP/cache --log $RUNNER_TEMP/log.txt --warn $RUNNER_TEMP/warn.txt --pr --force
9191
else
9292
python assets/renew_ruyi_index.py -c assets/config.toml -p . -i $RUNNER_TEMP/cache --log $RUNNER_TEMP/log.txt --warn $RUNNER_TEMP/warn.txt --pr --force

assets/src/ruyi_index_updator/upload_plugin/lm4a_revy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def handle_report_uboot_8g(self, vinfo: VInfo,
131131
if index == "uboot-revyos-sipeed-lpi4a-8g" \
132132
and self.cmp_version(vinfo.version, "20240720") <= 0:
133133
bname = "u-boot-with-spl-lpi4a"
134-
elif index == "uboot-revyos-sipeed-lc4a-8g" \
134+
elif index == "uboot-revyos-sipeed-lpi4a-8g" \
135135
and self.cmp_version(vinfo.version, "20240720") > 0:
136136
bname = "u-boot-with-spl-lpi4a-main"
137137
elif index == "uboot-revyos-sipeed-lc4a-8g":
@@ -192,9 +192,9 @@ def handle_report_uboot_16g(self, vinfo: VInfo,
192192
if index == "uboot-revyos-sipeed-lpi4a-16g" \
193193
and self.cmp_version(vinfo.version, "20240720") <= 0:
194194
bname = "u-boot-with-spl-lpi4a-16g"
195-
elif index == "uboot-revyos-sipeed-lc4a-16g" \
195+
elif index == "uboot-revyos-sipeed-lpi4a-16g" \
196196
and self.cmp_version(vinfo.version, "20240720") > 0:
197-
bname = "u-boot-with-spl-lpi4a-main-16g"
197+
bname = "u-boot-with-spl-lpi4a-16g-main"
198198
elif index == "uboot-revyos-sipeed-lc4a-16g":
199199
bname = "u-boot-with-spl-lc4a-16g-main"
200200
else: # unreachable

assets/src/ruyi_index_updator/version_diff.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import tempfile
99
import hashlib
1010
import toml
11+
import traceback
1112

1213
from awesomeversion import AwesomeVersion
1314

@@ -151,6 +152,7 @@ def gen_diff(self, filter_plugins: list[str] = None, threadhold=ImageStatus("bas
151152
logger.error("Error occurs when handling system %s:%s:%s-%s",
152153
v.vendor, v.system, v.variant, v.version)
153154
logger.error("Error: %s", e)
155+
logger.error(traceback.format_exc())
154156

155157
def __init__(self, matrix: Systems, conf: str):
156158
self.__get_tmp_path()

0 commit comments

Comments
 (0)