Skip to content

Commit

Permalink
Update Packages-AutoBuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 authored Sep 18, 2024
1 parent a7889e8 commit 3d627d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/Packages-AutoBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ jobs:
if [[ "$fpkg" && ! "$during" ]]; then
comp
else
gitdate="$(curl -H "Authorization: token ${{ env.REPO_TOKEN }}" -s "https://api.github.com/repos/kiddin9/openwrt-packages/commits?path=$ipk&per_page=1" | jq -r '.[0].commit.committer.date')" || true
REPO_TOKEN="${{ env.REPO_TOKEN }}"
gitdate=$(curl -H "Authorization: token $REPO_TOKEN" -s "https://api.github.com/repos/kiddin9/openwrt-packages/commits?path=$ipk&per_page=1" | jq -r '.[0].commit.committer.date') || (REPO_TOKEN="${{ secrets.TOKEN_KIDDIN9 }}" && gitdate=$(curl -H "Authorization: token $REPO_TOKEN" -s "https://api.github.com/repos/kiddin9/openwrt-packages/commits?path=$ipk&per_page=1" | jq -r '.[0].commit.committer.date'))
if [[ "$gitdate" && "$gitdate" != null ]]; then
gitdate="$(date -d "$gitdate" +%s)"
now="$(date -d "$(date)" +%s)"
Expand Down

0 comments on commit 3d627d8

Please sign in to comment.