Skip to content

Commit

Permalink
Use GH release URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoSWD committed May 3, 2024
1 parent 465c8ca commit c6c3b12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-calendar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
env:
CALENDAR_FILE_ICS: "IFSC-World-Cups-and-World-Championships.ics"
CALENDAR_FILE_JSON: "IFSC-World-Cups-and-World-Championships.json"
LATEST_CALENDAR_URL: "https://github.com/sportclimbing/ifsc-calendar/releases/latest/download/IFSC-World-Cups-and-World-Championships.json"

jobs:
update-calendar:
Expand Down Expand Up @@ -42,7 +43,7 @@ jobs:
- name: "Check diff"
id: check_diff
run: |
curl -sSL "https://calendar.ifsc.stream/?format=json&nocache=1" --output old-calendar.json
curl -sSL "${{ env.LATEST_CALENDAR_URL }}" --output old-calendar.json
php bin/calendar-diff old-calendar.json "${{ env.CALENDAR_FILE_JSON }}" > diff.md || true
if [ $(wc -w < diff.md) -gt 0 ]; then
Expand Down

0 comments on commit c6c3b12

Please sign in to comment.