From d53c5545a192f919e8168c128d4f811d22fdb0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 14 Nov 2022 14:14:33 +0100 Subject: [PATCH] Remove sync action in favor of CI job --- .github/workflows/opencode-sync.yml | 37 ----------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/opencode-sync.yml diff --git a/.github/workflows/opencode-sync.yml b/.github/workflows/opencode-sync.yml deleted file mode 100644 index 1ec0fa58d9..0000000000 --- a/.github/workflows/opencode-sync.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: opencode-sync -on: - workflow_dispatch: - inputs: - debug_enabled: - type: boolean - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false - schedule: - - cron: '5 */1 * * *' # Every hour - -permissions: - contents: read # to fetch code (actions/checkout) -jobs: - to_gitlab: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: webfactory/ssh-agent@v0.6.0 - with: - ssh-private-key: ${{ secrets.OPENCODE_SYNC_SSH_PRIVATE_KEY }} - - name: Mirror - run: | - export GIT_SSH_COMMAND="ssh -v -o StrictHostKeyChecking=no -o KexAlgorithms=curve25519-sha256 -o ServerAliveInterval=20" - - echo "Adding opencode remote" - git remote add opencode git@gitlab.opencode.de:bmi/souveraener_arbeitsplatz/component-code/management/openproject/openproject-core.git - - echo "Pushing all refs" - git push --tags --force --prune opencode "refs/remotes/origin/*:refs/heads/*" - - uses: mxschmitt/action-tmate@v3 - if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure() }} - with: - limit-access-to-actor: true