From 72f6d36911e8eed795873b7eaaf722e6b1a43077 Mon Sep 17 00:00:00 2001 From: Nicolas Drebenstedt Date: Thu, 18 Jan 2024 13:19:53 +0100 Subject: [PATCH] create GitHub action to sync to openCoDE --- .github/workflows/open-code.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/open-code.yml diff --git a/.github/workflows/open-code.yml b/.github/workflows/open-code.yml new file mode 100644 index 00000000..c61bd30d --- /dev/null +++ b/.github/workflows/open-code.yml @@ -0,0 +1,21 @@ +name: OpenCoDE + +on: + push: + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout Github repository + uses: actions/checkout@v3 + with: + persist-credentials: false + ref: 'main' + - name: Force push main branch + run: | + git remote add opencode https://RKIOpenData:${{ secrets.OPENCODE_TOKEN }}@gitlab.opencode.de/mex/mex-common.git + git push opencode -f + git push opencode -f --tags