Skip to content

Commit

Permalink
dumpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
saumier committed Aug 27, 2023
1 parent b7f5d29 commit 24b6b92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dump-gtq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
steps:
- name: Download events from Artsdata
run: curl --header 'Accept:application/json' 'http://api.artsdata.ca/query.jsonld?limit=300&frame=lavitrine/events3&sparql=lavitrine/events3&graph=http://kg.artsdata.ca/culture-creates/huginn/derived-grandtheatre-qc-ca' > grandtheatre-qc-ca.json
- name: Get current date
id: date_now
- name: Set current date as env variable
id: version # this is used on variable path
run: |
echo "{date_now}={$(date +'%Y-%m-%dT%H:%M:%S%z')}" >> $GITHUB_STATE
- echo "dumpdate=$(date +'%Y-%m-%dT%H:%M:%S%z')" >> $GITHUB_OUTPUT
- name: Upload to S3
run: aws s3 cp grandtheatre-qc-ca.json s3://${{env.WEBHOSTING_BUCKET_NAME}}/grandtheatre-qc-ca-${{ env.date_now }}.json --acl public-read
run: aws s3 cp grandtheatre-qc-ca.json s3://${{ env.WEBHOSTING_BUCKET_NAME }}/grandtheatre-qc-ca-${{ steps.version.outputs.dumpdate }}.json --acl public-read

0 comments on commit 24b6b92

Please sign in to comment.