Skip to content

Commit

Permalink
Synchronize with GitLab on every commit to main
Browse files Browse the repository at this point in the history
  • Loading branch information
snglth committed Aug 23, 2023
1 parent e781aba commit de8cab9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 130 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Sync with private repo

on:
push:
branches: [ main ]

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Sync to GitLab
run: |
mkdir -p ~/.ssh && chmod 700 ~/.ssh
eval $(ssh-agent -s)
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts
echo "${{ secrets.SSH_PRIVATE_KEY }}" | ssh-add -
git remote add gitlab [email protected]:abstract-germany/community-theme/community-theme-tutor.git
git push gitlab $GITHUB_REF
130 changes: 0 additions & 130 deletions .github/workflows/tutor.yml

This file was deleted.

0 comments on commit de8cab9

Please sign in to comment.