-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2acb79
commit 486b240
Showing
6 changed files
with
77 additions
and
133 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Create release on tag push | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
tags: | ||
- '[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
Release: | ||
name: Create Release | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create Release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{github.ref_name}} | ||
release_name: Datenstand ${{github.ref_name}} | ||
body: Datenstand ${{github.ref_name}} inklusive aktualisierter Metadaten | ||
draft: false | ||
prerelease: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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' |