-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·44 lines (41 loc) · 1.6 KB
/
Send_metadata_to_Govdata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Send metadata to Govdata
on:
workflow_dispatch:
push:
paths:
- 'Metadaten/**.ttl'
jobs:
Push_Govdata_ttl:
name: Push metadata to Govdata-Repository
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Rename ttl with reponame
run: cp Metadaten/govdata.ttl Metadaten/${{ github.event.repository.name }}.ttl
- name: Push dataset ttl to Govdata repository
id: pushStep1
continue-on-error: true
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.GOVDATA_TOKEN }}
with:
source_file: 'Metadaten/${{ github.event.repository.name }}.ttl'
destination_repo: 'robert-koch-institut/Metadaten_fuer_GovData'
destination_folder: 'Datensaetze'
commit_message: 'adding ${{ github.event.repository.name }}.ttl'
user_email: 'opendata@rki.de'
user_name: 'RKIOpenData'
- name: Retry push dataset ttl to Govdata repository
id: pushStep2
if: steps.pushStep1.outcome == 'failure'
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.GOVDATA_TOKEN }}
with:
source_file: 'Metadaten/${{ github.event.repository.name }}.ttl'
destination_repo: 'robert-koch-institut/Metadaten_fuer_GovData'
destination_folder: 'Datensaetze'
commit_message: 'adding ${{ github.event.repository.name }}.ttl'
user_email: 'opendata@rki.de'
user_name: 'RKIOpenData'