Skip to content

Commit

Permalink
Update Openwrt-AutoBuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddin9 authored May 12, 2021
1 parent bdb5869 commit 829e914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Openwrt-AutoBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Trigger Packages Update
run: |
gitdate=$(curl -H "Authorization: token ${{ secrets.REPO_TOKEN }}" -s "https://api.github.com/repos/garypang13/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].updated_at')
gitdate=$(curl -s "https://api.github.com/repos/garypang13/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].updated_at')
gitdate=$(date -d "$gitdate" +%s)
now=$(date -d "$(date '+%Y-%m-%d %H:%M:%S')" +%s)
if [[ $(expr $gitdate + 300) < $now ]]; then
Expand Down

0 comments on commit 829e914

Please sign in to comment.