kiddin9 / Kwrt

一分钟在线定制编译 X86/64, NanoPi R2S R4S R5S R6S, 斐讯 Phicomm N1 K2P, 树莓派 Raspberry Pi, 香橙派 Orange Pi, 红米AX6, 小米AX3600, 小米AX9000, 红米AX6S 小米AX3200, 红米AC2100, 华硕ASUS, 网件NETGEAR 等主流软硬路由
https://openwrt.ai
MIT License
7.75k stars 3.09k forks source link

Trigger Packages Update date: invalid date ‘null’ Error: Process completed with exit code 1. #1529

Open zhangye151 opened 1 year ago

zhangye151 commented 1 year ago

github云编译出现以下错误

Trigger Packages Update

Run gitdate=$(curl -H "Authorization: token " -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].created_at') gitdate=$(curl -H "Authorization: token " -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].created_at') gitdate=$(date -d "$gitdate" +%s) now=$(date -d "$(date)" +%s) if [[ $(expr $gitdate + 120) < $now ]]; then curl -X POST https://api.github.com/repos/kiddin9/openwrt-packages/dispatches \ -H "Accept: application/vnd.github. everest-preview+json" \ -H "Authorization: token " \ --data '{"event_type": "update"}' fi shell: /usr/bin/bash -e {0} env: TOKEN_KIDDIN9: TZ: Asia/Shanghai REPO_URL: https://github.com/openwrt/openwrt REPO_BRANCH: date: invalid date ‘null’ Error: Process completed with exit code 1.

yangxiaoge commented 1 year ago

+1

yanyuq commented 7 months ago

添加的secret名称改为TOKEN_KIDDIN9即可解决问题

1642