From 1e2fdd0ebd50c62f89605ab16bdcbe70cfe8bf6c Mon Sep 17 00:00:00 2001 From: Nico Oelgart Date: Sat, 16 Mar 2024 18:18:07 +0100 Subject: [PATCH] Try running docker image --- .github/workflows/update-calendar.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/update-calendar.yml b/.github/workflows/update-calendar.yml index 99e0935..3059b7d 100644 --- a/.github/workflows/update-calendar.yml +++ b/.github/workflows/update-calendar.yml @@ -16,25 +16,26 @@ jobs: update-calendar: runs-on: ubuntu-latest steps: - - name: "Checkout code" - uses: actions/checkout@master + - name: "Generate calendar files" + uses: addnab/docker-run-action@v3 + with: + image: sportclimbing/ifsc-calendar:latest + options: -v ${{ github.workspace }}:/app + run: | + --season 2024 \ + --league "World Cups and World Championships" \ + --league "Games" \ + --league "IFSC Paraclimbing" \ + --output "/app/${{ env.CALENDAR_FILE_ICS }}" \ + --format "ics,json" - name: "Setup PHP" uses: shivammathur/setup-php@v2 with: php-version: '8.3' - tools: composer - - name: "Generate calendar files" - run: | - composer install --no-dev --optimize-autoloader - php app/run.php \ - --season 2024 \ - --league "World Cups and World Championships" \ - --league "Games" \ - --league "IFSC Paraclimbing" \ - --output "${{ env.CALENDAR_FILE_ICS }}" \ - --format "ics,json" \ + - name: "Checkout code" + uses: actions/checkout@master - name: "Validate calendar" run: php bin/validate-calendar "${{ env.CALENDAR_FILE_JSON }}"