-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize with GitLab on every commit to main
- Loading branch information
Showing
2 changed files
with
21 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.