From c211707efd10b351f7182a84c10c44b26a9ecfdd Mon Sep 17 00:00:00 2001 From: odmanagement Date: Mon, 8 Jul 2024 10:25:13 +0200 Subject: [PATCH] Add Github details workflow --- .github/workflows/OpenData_Workfow.yml | 11 +++++++++-- .github/workflows/Update_github_details.yml | 13 +++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 .github/workflows/Update_github_details.yml diff --git a/.github/workflows/OpenData_Workfow.yml b/.github/workflows/OpenData_Workfow.yml index c39fca5..7224b92 100755 --- a/.github/workflows/OpenData_Workfow.yml +++ b/.github/workflows/OpenData_Workfow.yml @@ -9,21 +9,27 @@ jobs: build: uses: robert-koch-institut/OpenData-Workflows/.github/workflows/OpenData_Workflows.yml@main with: + # General Variables + ZENODOJSON_PATH: Metadaten/zenodo.json + # Push to OpenCoDE OPENCODE_ACTIVE: true OPENCODE_GROUPID: 2781 OPENCODE_ACCESS_USER: RKIOpenData - OPENCODE_ZENODOJSON_PATH: Metadaten/zenodo.json # Push to GovData Repositoy GOVDATA_ACTIVE: true - GOVDATA_DESTINATION_REPO: robert-koch-institut/Metadaten_fuer_GovData + GOVDATA_DESTINATION_REPO: RKIOpenData/Metadaten_fuer_GovData # Push to NFDI4Health NFDI4HEALTH_ACTIVE: true #Build Open Data Website WEBSITE_ACTIVE: true + + #Update Github Details + GITHUB_DETAILS_ACTIVE: true + secrets: # Token from GovData Repository @@ -38,3 +44,4 @@ jobs: # Github Token GH_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_METADATA_TOKEN: ${{secrets.ADMINISTRATION_TOKEN}} diff --git a/.github/workflows/Update_github_details.yml b/.github/workflows/Update_github_details.yml new file mode 100755 index 0000000..f981cb3 --- /dev/null +++ b/.github/workflows/Update_github_details.yml @@ -0,0 +1,13 @@ +name: Manually update Github repository details +on: + workflow_dispatch: + +jobs: + update-github-repository-details : + runs-on: ubuntu-latest + steps: + - name: Update Github repository details weith zenodo.json metadata + uses: robert-koch-institut/OpenData-Workflows/Update_details_on_Github@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_METADATA_TOKEN: ${{ secrets.ADMINISTRATION_TOKEN }}