Kwrt
Kwrt copied to clipboard
Trigger Packages Update date: invalid date ‘null’ Error: Process completed with exit code 1.
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.
+1
添加的secret名称改为TOKEN_KIDDIN9即可解决问题 #1642