diff --git a/.github/workflows/agoradanse-com.yml b/.github/workflows/agoradanse-com.yml index 1bf6fd0..e75bdf8 100644 --- a/.github/workflows/agoradanse-com.yml +++ b/.github/workflows/agoradanse-com.yml @@ -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" diff --git a/.github/workflows/generate_report.yml b/.github/workflows/generate-report.yml similarity index 79% rename from .github/workflows/generate_report.yml rename to .github/workflows/generate-report.yml index e6ec525..d7e1a1b 100644 --- a/.github/workflows/generate_report.yml +++ b/.github/workflows/generate-report.yml @@ -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" @@ -43,14 +43,19 @@ 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 }} + token: "${{ secrets.GITHUB_TOKEN }}" + save-method: 'artifact' generate-report: runs-on: ubuntu-latest diff --git a/.github/workflows/sandersoncentre-ca.yml b/.github/workflows/sandersoncentre-ca.yml index 3c35b6f..e7e7ea6 100644 --- a/.github/workflows/sandersoncentre-ca.yml +++ b/.github/workflows/sandersoncentre-ca.yml @@ -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"