Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 7 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,12 @@ jobs:
echo "- dist/ directory built with Node ${{ matrix.node-version }}" >> $GITHUB_STEP_SUMMARY
push-to-gitlab:
name: Push to GitLab
runs-on: ubuntu-latest
uses: DataKnifeAI/github-workflows/.github/workflows/reusable-gitlab-mirror-push.yml@main
needs:
- test-and-build
if: always() && needs.test-and-build.result == 'success' && github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Push to GitLab
env:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git remote remove gitlab 2>/dev/null || true
git remote add gitlab https://gitlab.com/dk-raas/dkai/high-command/high-command-ui.git
git config credential.helper '!f() { echo "username=oauth2"; echo "password=${GITLAB_TOKEN}"; }; f'
git fetch gitlab main
git push gitlab HEAD:main --force
if: >-
always() && needs.test-and-build.result == 'success' &&
github.event_name == 'push' && github.ref == 'refs/heads/main'
secrets: inherit
with:
gitlab_mirror_path: dk-raas/dkai/high-command/high-command-ui