Kwrt icon indicating copy to clipboard operation
Kwrt copied to clipboard

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

Open zhangye151 opened this issue 1 year ago • 2 comments

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.

zhangye151 avatar Aug 30 '23 07:08 zhangye151

+1

yangxiaoge avatar Nov 07 '23 03:11 yangxiaoge

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

yanyuq avatar Apr 11 '24 01:04 yanyuq