Skip to content

Commit

Permalink
Updated workflow to use new links for jsonld
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Jun 4, 2024
1 parent 55d5326 commit 8a15618
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/scenesfrancophones-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a15618

Please sign in to comment.