Skip to content

Commit

Permalink
Update Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWuensche committed Dec 12, 2023
1 parent e3046a2 commit 2f46327
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 27 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/Build_and_deploy_website.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build and deploy OpenData-Website

name: Manually build and deploy OpenData-Website
on:
workflow_dispatch:

Expand All @@ -8,8 +7,9 @@ jobs:
# This workflow contains a single job called "build"
build:
# Steps represent a sequence of tasks that will be executed as part of the job
runs-on: ubuntu-latest
steps:
- name: Bulid and deploy OpenData Website
uses: robert-koch-institut/OpenData-Website@main
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Bulid and deploy OpenData Website
uses: robert-koch-institut/OpenData-Website@main
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 0 additions & 15 deletions .github/workflows/Create_release_on_tag_push.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/Create_release_with_latest_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Manually create relese with latest tag
on:
workflow_dispatch:

permissions:
contents: write

jobs:
create_release:
name: Create reslese
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get latest tag and set env
run: |
echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: robert-koch-institut/OpenData-Workflows/Create_release_on_tag_push@main
with:
REF_NAME: ${{ env.LATEST_TAG }}
19 changes: 17 additions & 2 deletions .github/workflows/Publish_Dataset.yml → .github/workflows/OpenData_Workfow.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: main
name: OpenData Workfow for FAIR Data
on:
push:
tags:
Expand All @@ -9,17 +9,32 @@ jobs:
build:
uses: robert-koch-institut/OpenData-Workflows/.github/workflows/OpenData_Workflows.yml@main
with:
# Push to OpenCoDE
OPENCODE_ACTIVE: true
OPENCODE_GROUPID: 2781
OPENCODE_ACCESS_USER: RKIOpenData
OPENCODE_ZENODOJSON_PATH: Metadaten/zenodo.json
ZENODOJSON_PATH: Metadaten/zenodo.json

# Push to GovData Repositoy
GOVDATA_ACTIVE: true
GOVDATA_DESTINATION_REPO: robert-koch-institut/Metadaten_fuer_GovData

# Push to NFDI4Health
NFDI4HEALTH_ACTIVE: true

#Build Open Data Website
WEBSITE_ACTIVE: true

secrets:
# Token from GovData Repository
GOVDATA_GITHUB_TOKEN: ${{secrets.GOVDATA_TOKEN}}

# Token from OpenCoDE Account
OPENCODE_TOKEN: ${{secrets.OPENCODE_TOKEN}}

# NFDI4Health Credentials
NFDI4HEALTH_CLIENT_ID: CSH_RKI_CLIENT
NFDI4HEALTH_CLIENT_SECRET: ${{secrets.NFDI4HEALTH_SECRET}}

# Github Token
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
5 changes: 4 additions & 1 deletion .github/workflows/Send_metadata_to_Govdata.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Manually send metadata to GovData
on:
workflow_dispatch:

permissions:
contents: write

jobs:
push_govdata:
name: push ttl to GovData
name: Push ttl to GovData repository
runs-on: ubuntu-latest
steps:
- name: run GovData Action
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Send metadata to NFDI4Health
name: Manually send metadata to NFDI4Health
on:
workflow_dispatch:

jobs:
sync_opencode:
name: Send metadata to NFDI4Health
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Sync_OpenData_repo_to_OpenCoDE.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sync Github Open Data repository and its metadata to OpenCoDE.de
name: Manually sync Github Open Data repository and its metadata to OpenCoDE.de

on:
workflow_dispatch:
Expand All @@ -15,5 +15,5 @@ jobs:
OPENCODE_TOKEN: ${{ secrets.OPENCODE_TOKEN }}
GROUP_ID: 2781
ACCESS_USER: RKIOpenData
# # REPO_PATH: The repository name must not start or end with a special character and must not contain consecutive special characters
# REPO_PATH: The repository name must not start or end with a special character and must not contain consecutive special characters
ZENODOJSON_PATH: Metadaten/zenodo.json

0 comments on commit 2f46327

Please sign in to comment.