Skip to content

Commit

Permalink
Nah
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoSWD committed Mar 16, 2024
1 parent d30dd16 commit 323d16f
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/update-calendar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,23 @@ jobs:
update-calendar:
runs-on: ubuntu-latest
steps:
- name: "Generate calendar files"
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/sportclimbing/ifsc-calendar:latest
options: -v ${{ github.workspace }}:/app
run: ifsc-calendar \
--season 2024 \
--league "World Cups and World Championships" \
--league "Games" \
--league "IFSC Paraclimbing" \
--output "/app/${{ env.CALENDAR_FILE_ICS }}" \
--format "ics,json"
- name: "Checkout code"
uses: actions/checkout@master

- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer

- name: "Checkout code"
uses: actions/checkout@master
- name: "Generate calendar files"
run: |
composer install --no-dev --optimize-autoloader
php app/run.php \
--season 2024 \
--league "World Cups and World Championships" \
--output "${{ env.CALENDAR_FILE_ICS }}" \
--format "ics,json" \
- name: "Validate calendar"
run: php bin/validate-calendar "${{ env.CALENDAR_FILE_JSON }}"
Expand Down

0 comments on commit 323d16f

Please sign in to comment.