From 8a1561883708b6bba88541512946564f9222de16 Mon Sep 17 00:00:00 2001 From: dev Date: Tue, 4 Jun 2024 16:10:11 +0530 Subject: [PATCH] Updated workflow to use new links for jsonld --- .github/workflows/scenesfrancophones-events.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/scenesfrancophones-events.yml b/.github/workflows/scenesfrancophones-events.yml index 01d054a..10b8085 100644 --- a/.github/workflows/scenesfrancophones-events.yml +++ b/.github/workflows/scenesfrancophones-events.yml @@ -13,17 +13,16 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - name: Run Main Script - run: bundle exec ruby main.rb https://scenesfrancophones.ca/spectacles?page= https://scenesfrancophones.ca div.title output/events.jsonld + + - name: curl-jsonld + run: curl https://scenesfrancophones.ca/donneesouvertes/evenements.json > output/events.jsonld - name: Check for file changes id: check-changes run: | - if [ -n "$(git diff --cached outputs/events.jsonld)" ]; then + if git diff --exit-code output/events.jsonld; then + echo "HAS_CHANGES=false" >> $GITHUB_OUTPUT + else echo "HAS_CHANGES=true" >> $GITHUB_OUTPUT fi shell: bash