Skip to content

Commit

Permalink
Updated workflow to use reusable pipeline action
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Nov 18, 2024
1 parent d1285b2 commit 5175977
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/agoradanse-com.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/generate_report.yml
uses: ./.github/workflows/generate-report.yml
with:
page_url: "https://agoradanse.com/evenement/montreal-marrakech/"
entity_identifier: "div.x-container.max a"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Generate Score Report

on:
workflow_dispatch: # Can be triggered manually from GitHub Actions
workflow_dispatch:
inputs:
page_url:
description: "URL of the webpage listing all events"
Expand Down Expand Up @@ -43,14 +43,18 @@ on:

jobs:
call-reusable-workflow:
uses: culturecreates/artsdata-orion/.github/workflows/fetch-data.yml@main
with:
page_url: ${{ inputs.page_url }}
entity_identifier: ${{ inputs.entity_identifier }}
file_name: ${{ inputs.file_name }}
is_paginated: ${{ inputs.is_paginated }}
headless: ${{ inputs.headless }}
save_method: 'artifact'
runs-on: ubuntu-latest
steps:
- name: Action setup
uses: culturecreates/artsdata-pipeline-action@main
with:
mode: fetch
page-url: ${{ inputs.page_url }}
entity-identifier: ${{ inputs.entity_identifier }}
downloadFile: ${{ inputs.file_name }}
is-paginated: ${{ inputs.is_paginated }}
headless: ${{ inputs.headless }}
save-method: 'artifact'

generate-report:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sandersoncentre-ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/generate_report.yml
uses: ./.github/workflows/generate-report.yml
with:
page_url: "https://calendar.sandersoncentre.ca/?page="
entity_identifier: "div#CalendarList a.card"
Expand Down

0 comments on commit 5175977

Please sign in to comment.