Skip to content

Commit

Permalink
Updated all workflows to call the reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Jan 31, 2024
1 parent 441cd21 commit c04538b
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 159 deletions.
43 changes: 9 additions & 34 deletions .github/workflows/capitoltheatre-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,15 @@ on:
- cron: '0 0 1 */6 *'

jobs:
fetch-and-commit-data:
runs-on: ubuntu-latest

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 src/main.rb \
https://capitoltheatre.ca/page/ \
"div.et_pb_portfolio_grid_items a" \
output/capitoltheatre-events.jsonld \
true
- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add "output/capitoltheatre-events.jsonld"
git commit -m "Add data generated by the script"
git push
artsdata-push:
needs: fetch-and-commit-data
uses: culturecreates/artsdata-planet-ipaa/.github/workflows/push-entities-to-artsdata.yml@main
with:
call-artsdata-push-workflow:
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main
with:
page_url: https://capitoltheatre.ca/page/
entity_identifier: "div.et_pb_portfolio_grid_items a"
file_name: capitoltheatre-events.jsonld
is_paginated: true
artifact_name: capitoltheatre-ca
entity_url: https://capitoltheatre.ca/
download_url: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/capitoltheatre-events.jsonld
download_file: capitoltheatre-events.jsonld
secrets:
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }}


2 changes: 1 addition & 1 deletion .github/workflows/fetch-and-push-to-artsdata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
bundle exec ruby src/main.rb \
${{ inputs.page_url }} \
${{ inputs.entity_identifier }} \
"${{ inputs.entity_identifier }}" \
output/${{ inputs.file_name }} \
${{ inputs.is_paginated}} \
${{ inputs.base_url}}
Expand Down
45 changes: 10 additions & 35 deletions .github/workflows/levivier-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,16 @@ on:
- cron: '0 0 1 */6 *'

jobs:
fetch-and-commit-data:
runs-on: ubuntu-latest

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 src/main.rb \
https://levivier.ca/fr \
"div.cont-even a" \
output/levivier-events.jsonld \
false \
https://levivier.ca
- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add "output/levivier-events.jsonld"
git commit -m "Add data generated by the script"
git push
artsdata-push:
needs: fetch-and-commit-data
uses: culturecreates/artsdata-planet-ipaa/.github/workflows/push-entities-to-artsdata.yml@main
with:
call-artsdata-push-workflow:
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main
with:
page_url: https://levivier.ca/fr
entity_identifier: "div.cont-even a"
file_name: levivier-events.jsonld
is_paginated: false
artifact_name: levivier-ca
entity_url: https://levivier.ca/fr
download_url: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/levivier-events.jsonld
download_file: levivier-events.jsonld
base_url: https://levivier.ca
secrets:
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }}


45 changes: 10 additions & 35 deletions .github/workflows/totem-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,16 @@ on:
- cron: '0 0 1 */6 *'

jobs:
fetch-and-commit-data:
runs-on: ubuntu-latest

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 src/main.rb \
https://totemcontemporain.com/fr/calendrier \
"h3.picto.padding-bottom-12 a" \
output/totem-events.jsonld \
false \
https://totemcontemporain.com
- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add "output/totem-events.jsonld"
git commit -m "Add data generated by the script"
git push
artsdata-push:
needs: fetch-and-commit-data
uses: culturecreates/artsdata-planet-ipaa/.github/workflows/push-entities-to-artsdata.yml@main
with:
call-artsdata-push-workflow:
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main
with:
page_url: https://totemcontemporain.com/fr/calendrier
entity_identifier: "h3.picto.padding-bottom-12 a"
file_name: totem-events.jsonld
is_paginated: false
artifact_name: totemcontemporain-com
entity_url: https://totemcontemporain.com/fr/calendrier
download_url: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/totem-events.jsonld
download_file: totem-events.jsonld
base_url: https://totemcontemporain.com
secrets:
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }}


43 changes: 9 additions & 34 deletions .github/workflows/yardbirdsuite-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,15 @@ on:
- cron: '0 0 1 */6 *'

jobs:
fetch-and-commit-data:
runs-on: ubuntu-latest

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 src/main.rb \
https://yardbirdsuite.com/events/page/ \
"a.h-100.w-100.position-absolute.t-0.l-0.z-999" \
output/yardbirdsuite-events.jsonld \
true
- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add "output/yardbirdsuite-events.jsonld"
git commit -m "Add data generated by the script"
git push
artsdata-push:
needs: fetch-and-commit-data
uses: culturecreates/artsdata-planet-ipaa/.github/workflows/push-entities-to-artsdata.yml@main
with:
call-artsdata-push-workflow:
uses: culturecreates/artsdata-orion/.github/workflows/fetch-and-push-to-artsdata.yml@main
with:
page_url: https://yardbirdsuite.com/events/
entity_identifier: "a.h-100.w-100.position-absolute.t-0.l-0.z-999"
file_name: yardbirdsuite-events.jsonld
is_paginated: true
artifact_name: yardbirdsuite-com
entity_url: https://yardbirdsuite.com/events/
download_url: https://raw.githubusercontent.com/culturecreates/artsdata-orion/main/output/yardbirdsuite-events.jsonld
download_file: yardbirdsuite-events.jsonld
secrets:
publisher_uri: ${{ secrets.PUBLISHER_URI_GREGORY }}


20 changes: 0 additions & 20 deletions .github/workflows/yardbirdsuite-test.yml

This file was deleted.

0 comments on commit c04538b

Please sign in to comment.