Skip to content

Commit

Permalink
Revert "using artsdata action"
Browse files Browse the repository at this point in the history
This reverts commit 286ef71.
  • Loading branch information
saumier committed Nov 14, 2024
1 parent 286ef71 commit d1285b2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 27 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/generate_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,54 @@ name: Generate Score Report
on:
workflow_dispatch: # Can be triggered manually from GitHub Actions
inputs:
page-url:
page_url:
description: "URL of the webpage listing all events"
required: true
type: string
entity-identifier:
entity_identifier:
description: "CSS to identify individual event webpages (example: div.event-card a)"
required: true
type: string
downloadFile:
file_name:
description: "File name"
required: true
type: string
is-paginated:
is_paginated:
description: "Is the page paginated? (true|false|[page number])"
required: true
type: string
headless:
description: "Run in headless mode? (true|false)"
required: true
type: string

workflow_call:
inputs:
page-url:
page_url:
required: true
type: string
entity-identifier:
entity_identifier:
required: true
type: string
downloadFile:
file_name:
required: true
type: string
is-paginated:
is_paginated:
required: true
type: string
headless:
required: true
type: string
secrets:
GITHUB_TOKEN:
required: true


jobs:
call-reusable-workflow:
uses: culturecreates/artsdata-pipeline-action@v2
uses: culturecreates/artsdata-orion/.github/workflows/fetch-data.yml@main
with:
mode: fetch
downloadFile: ${{inputs.downloadFile}}
page-url: ${{ inputs.page-url }}
entity-identifier: ${{ inputs.entity-identifier }}
is-paginated: ${{ inputs.is-paginated }}
page_url: ${{ inputs.page_url }}
entity_identifier: ${{ inputs.entity_identifier }}
file_name: ${{ inputs.file_name }}
is_paginated: ${{ inputs.is_paginated }}
headless: ${{ inputs.headless }}
token: ${{ secrets.GITHUB_TOKEN }}
save-method: 'artifact'
save_method: 'artifact'

generate-report:
runs-on: ubuntu-latest
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/sandersoncentre-ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ jobs:
call-workflow-to-fetch-data:
uses: ./.github/workflows/generate_report.yml
with:
page-url: "https://calendar.sandersoncentre.ca/?page="
entity-identifier: "div#CalendarList a.card"
downloadFile: sandersoncentre-ca.jsonld
is-paginated: true
headless: true
token: ${{ secrets.GITHUB_TOKEN }}
page_url: "https://calendar.sandersoncentre.ca/?page="
entity_identifier: "div#CalendarList a.card"
file_name: "sandersoncentre-ca.jsonld"
is_paginated: "true"
headless: "true"

0 comments on commit d1285b2

Please sign in to comment.