Skip to content

Commit

Permalink
updated workflow to add more sources
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-aravind committed Oct 8, 2024
1 parent 60584d2 commit 49969b1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/fetch-data-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ jobs:
run: |
mkdir -p outputs
matrix="[]"
IFS=',' read -ra SOURCES <<< "${{ inputs.sources }}"
input_sources="${{ inputs.sources }}"
input_sources_cleaned="${input_sources//[[:space:]]/}"
IFS=',' read -ra SOURCES <<< "$input_sources_cleaned"
for source in "${SOURCES[@]}"; do
ttl_file_name="spektrix-${source}-entities.ttl"
artifact_name="spektrix-${source}"
Expand Down Expand Up @@ -120,6 +122,7 @@ jobs:

- name: Commit files to GitHub
run: |
git status
git pull
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ jobs:
call-fetch-data:
uses: ./.github/workflows/fetch-data-and-push.yml
with:
sources: 'gatewaytheatre,kaymeekcentre,terrabrucemajestic'
sources: >
gatewaytheatre,
kaymeekcentre,
terrabrucemajestic,
factorytheatre,
rotarycentreforthearts,
rcmusic,
bardonthebeach,
sidwilliams
secrets:
publisher-uri: ${{ secrets.PUBLISHER_URI_GREGORY }}
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import requests, json, sys, os
import requests, json, os

source = os.environ.get('SOURCE')
source = os.environ.get('SOURCE').strip()

base_url = f"https://system.spektrix.com/{source}/api/v3"

Expand Down

0 comments on commit 49969b1

Please sign in to comment.