Skip to content

Commit

Permalink
Added workflow to fetch exhibitions and performances
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Aug 2, 2024
1 parent 310c5ce commit 18d0f1b
Show file tree
Hide file tree
Showing 11 changed files with 7,549 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/performers_exhibitions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Fetch Performer and Exhibitions

on:
workflow_dispatch:

jobs:
fetch-and-commit-data:
runs-on: ubuntu-latest
outputs:
commit-hash: ${{ steps.get_commit_hash.outputs.commit-hash }}
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 performance
bundle exec ruby src/main.rb exhibition
- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git pull
git add outputs
git commit -m "Added data generated by the script"
git push
- name: Get commit hash
id: get_commit_hash
run: echo "commit-hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

artsdata-push:
runs-on: ubuntu-latest
needs: fetch-and-commit-data
strategy:
matrix:
artifact: [performing-arts, visual-media-arts]
file: [performance.jsonld, exhibition.jsonld]
steps:
- name: Action setup
uses: culturecreates/[email protected]
with:
artifact: ${{ matrix.artifact }}
publisher: "${{ secrets.PUBLISHER_URI_GREGORY }}"
downloadUrl: https://raw.githubusercontent.com/culturecreates/artsdata-planet-osac/${{ needs.fetch-and-commit-data.outputs.commit-hash }}/outputs/${{ matrix.file }}
Empty file added .ruby-version
Empty file.
1 change: 1 addition & 0 deletions .rvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rvm use 3.1.2@artsdata-planet-osac --create
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source "https://rubygems.org"

gem 'linkeddata'
gem 'nokogiri'
gem 'open-uri'


209 changes: 209 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
bcp47_spec (0.2.1)
bigdecimal (3.1.8)
builder (3.3.0)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
date (3.3.4)
ebnf (2.4.0)
htmlentities (~> 4.3)
rdf (~> 3.3)
scanf (~> 1.0)
sxp (~> 1.3)
unicode-types (~> 1.8)
haml (6.3.0)
temple (>= 0.8.2)
thor
tilt
hamster (3.0.0)
concurrent-ruby (~> 1.0)
htmlentities (4.3.4)
json-canonicalization (1.0.0)
json-ld (3.3.2)
htmlentities (~> 4.3)
json-canonicalization (~> 1.0)
link_header (~> 0.0, >= 0.0.8)
multi_json (~> 1.15)
rack (>= 2.2, < 4)
rdf (~> 3.3)
rexml (~> 3.2)
json-ld-preloaded (3.3.0)
json-ld (~> 3.3)
rdf (~> 3.3)
ld-patch (3.3.0)
ebnf (~> 2.4)
rdf (~> 3.3)
rdf-xsd (~> 3.3)
sparql (~> 3.3)
sxp (~> 1.3)
link_header (0.0.8)
linkeddata (3.3.1)
json-ld (~> 3.3)
json-ld-preloaded (~> 3.3)
ld-patch (~> 3.3)
nokogiri (~> 1.15, >= 1.15.4)
rdf (~> 3.2, >= 3.2.1)
rdf-aggregate-repo (~> 3.2)
rdf-hamster-repo (~> 3.3)
rdf-isomorphic (~> 3.3)
rdf-json (~> 3.3)
rdf-microdata (~> 3.3)
rdf-n3 (~> 3.3)
rdf-normalize (~> 0.7)
rdf-ordered-repo (~> 3.3)
rdf-rdfa (~> 3.3)
rdf-rdfxml (~> 3.3)
rdf-reasoner (~> 0.9)
rdf-tabular (~> 3.3)
rdf-trig (~> 3.3)
rdf-trix (~> 3.3)
rdf-turtle (~> 3.3)
rdf-vocab (~> 3.3)
rdf-xsd (~> 3.3)
shacl (~> 0.4)
shex (~> 0.8)
sparql (~> 3.3)
sparql-client (~> 3.3)
yaml-ld (~> 0.0)
logger (1.6.0)
matrix (0.4.2)
multi_json (1.15.0)
net-http-persistent (4.0.2)
connection_pool (~> 2.2)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
open-uri (0.4.1)
stringio
time
uri
psych (5.1.2)
stringio
public_suffix (6.0.1)
racc (1.8.1)
rack (3.1.7)
rdf (3.3.2)
bcp47_spec (~> 0.2)
bigdecimal (~> 3.1, >= 3.1.5)
link_header (~> 0.0, >= 0.0.8)
rdf-aggregate-repo (3.3.0)
rdf (~> 3.3)
rdf-hamster-repo (3.3.0)
hamster (~> 3.0)
rdf (~> 3.3)
rdf-isomorphic (3.3.0)
rdf (~> 3.3)
rdf-json (3.3.0)
rdf (~> 3.3)
rdf-microdata (3.3.0)
htmlentities (~> 4.3)
nokogiri (~> 1.15, >= 1.15.4)
rdf (~> 3.3)
rdf-rdfa (~> 3.3)
rdf-xsd (~> 3.3)
rdf-n3 (3.3.0)
ebnf (~> 2.4)
rdf (~> 3.3)
sparql (~> 3.3)
sxp (~> 1.3)
rdf-normalize (0.7.0)
rdf (~> 3.3)
rdf-ordered-repo (3.3.0)
rdf (~> 3.3)
rdf-rdfa (3.3.0)
haml (~> 6.1)
htmlentities (~> 4.3)
rdf (~> 3.3)
rdf-aggregate-repo (~> 3.3)
rdf-vocab (~> 3.3)
rdf-xsd (~> 3.3)
rdf-rdfxml (3.3.0)
builder (~> 3.2, >= 3.2.4)
htmlentities (~> 4.3)
rdf (~> 3.3)
rdf-xsd (~> 3.3)
rdf-reasoner (0.9.0)
rdf (~> 3.3)
rdf-xsd (~> 3.3)
rdf-tabular (3.3.0)
addressable (~> 2.8)
bcp47_spec (~> 0.2)
json-ld (~> 3.3)
rdf (~> 3.3)
rdf-vocab (~> 3.3)
rdf-xsd (~> 3.3)
rdf-trig (3.3.0)
ebnf (~> 2.4)
rdf (~> 3.3)
rdf-turtle (~> 3.3)
rdf-trix (3.3.0)
rdf (~> 3.3)
rdf-xsd (~> 3.3)
rdf-turtle (3.3.0)
ebnf (~> 2.4)
rdf (~> 3.3)
rdf-vocab (3.3.1)
rdf (~> 3.3)
rdf-xsd (3.3.0)
rdf (~> 3.3)
rexml (~> 3.2)
rexml (3.3.4)
strscan
scanf (1.0.0)
shacl (0.4.1)
json-ld (~> 3.3)
rdf (~> 3.3)
sparql (~> 3.3)
sxp (~> 1.2)
shex (0.8.0)
ebnf (~> 2.4)
htmlentities (~> 4.3)
json-ld (~> 3.3)
json-ld-preloaded (~> 3.3)
rdf (~> 3.3)
rdf-xsd (~> 3.3)
sparql (~> 3.3)
sxp (~> 1.3)
sparql (3.3.0)
builder (~> 3.2, >= 3.2.4)
ebnf (~> 2.4)
logger (~> 1.5)
rdf (~> 3.3)
rdf-aggregate-repo (~> 3.3)
rdf-xsd (~> 3.3)
sparql-client (~> 3.3)
sxp (~> 1.3)
sparql-client (3.3.0)
net-http-persistent (~> 4.0, >= 4.0.2)
rdf (~> 3.3)
stringio (3.1.1)
strscan (3.1.0)
sxp (1.3.0)
matrix (~> 0.4)
rdf (~> 3.3)
temple (0.10.3)
thor (1.3.1)
tilt (2.4.0)
time (0.3.0)
date
unicode-types (1.9.0)
uri (0.13.0)
yaml-ld (0.0.3)
json-ld (~> 3.3)
psych (>= 3.3)
rdf (~> 3.3)
rdf-xsd (~> 3.3)

PLATFORMS
x86_64-linux

DEPENDENCIES
linkeddata
nokogiri
open-uri

BUNDLED WITH
2.3.7
Loading

0 comments on commit 18d0f1b

Please sign in to comment.