Skip to content

Commit

Permalink
Updated workflows for all 3 entities
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Jan 2, 2024
1 parent 873ec10 commit ef580e9
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/scenesfrancophones-artists.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Main Script

on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' #run every month first day

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '3.1'
- run: bundle install

- name: Run Main Script
run: ruby main.rb https://scenesfrancophones.ca/artistes?page= https://scenesfrancophones.ca article.node.node--promoted.artiste.artiste--teaser.card output/artists.jsonld

- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add "output/${{ github.event.inputs.file_name }}"
git commit -m "Add data generated by the script"
git push
31 changes: 31 additions & 0 deletions .github/workflows/scenesfrancophones-events.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Main Script

on:
workflow_dispatch:
schedule:
- cron: "0 5 * * 1" # Run at 1:00 AM ET every Monday

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '3.1'
- run: bundle install

- name: Run Main Script
run: ruby main.rb https://scenesfrancophones.ca/spectacles?page= https://scenesfrancophones.ca div.title output/events.jsonld

- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add "output/${{ github.event.inputs.file_name }}"
git commit -m "Add data generated by the script"
git push
31 changes: 31 additions & 0 deletions .github/workflows/scenesfrancophones-organizers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run Main Script

on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' #run every month first day

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '3.1'
- run: bundle install

- name: Run Main Script
run: ruby main.rb https://scenesfrancophones.ca/diffuseurs?page= https://scenesfrancophones.ca div.diffuseurs__field-logo output/organizers.jsonld

- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add "output/${{ github.event.inputs.file_name }}"
git commit -m "Add data generated by the script"
git push

0 comments on commit ef580e9

Please sign in to comment.