docs(standards): add critical rule 8 — update documentation when chan… #5
This file contains hidden or 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: Mirror to GitLab | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push to GitLab | |
| env: | |
| GITLAB_MIRROR_SSH_KEY: ${{ secrets.GITLAB_MIRROR_SSH_KEY }} | |
| run: | | |
| eval $(ssh-agent -s) | |
| echo "$GITLAB_MIRROR_SSH_KEY" | ssh-add - | |
| mkdir -p ~/.ssh | |
| ssh-keyscan gitlab.com >> ~/.ssh/known_hosts | |
| git push --force git@gitlab.com:devrail-dev/gitlab-repo-template.git HEAD:main |