Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法运行Actions #1996

Open
huxc573 opened this issue Dec 30, 2024 · 0 comments
Open

无法运行Actions #1996

huxc573 opened this issue Dec 30, 2024 · 0 comments

Comments

@huxc573
Copy link

huxc573 commented Dec 30, 2024

Run gitdate=$(curl -H "Authorization: token " -s "https://api.github.com/repos/kiddin9/kwrt-packages/actions/runs" | jq -r '.workflow_runs[0].created_at')
gitdate=$(curl -H "Authorization: token " -s "https://api.github.com/repos/kiddin9/kwrt-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/kwrt-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant