parent
f0a73aba91
commit
d53c5545a1
@ -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 |
Loading…
Reference in new issue