test commit #3
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
name: Sync with private repo | |
on: | |
push: | |
branches: [ community-theme ] | |
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.GITLAB_KNOWN_HOSTS }}" > ~/.ssh/known_hosts && chmod 644 ~/.ssh/known_hosts | |
echo "${{ secrets.COMMUNITY_THEME_SSH_PRIVATE_KEY }}" | ssh-add - | |
git remote add gitlab $GITLAB_REPOSITORY | |
git push gitlab $GITHUB_REF | |
env: | |
GITLAB_REPOSITORY: [email protected]:abstract-germany/community-theme/community-theme-brand.git |