Skip to content

Commit

Permalink
Setup GitLab mirror (#78)
Browse files Browse the repository at this point in the history
* Correct condition

* Add mirror to push changes to GitLab public branch

* Remove dead link

* Correct push command
  • Loading branch information
EmilyBourne authored Feb 7, 2025
1 parent cc32f0a commit 67402b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,18 @@ jobs:
shell: bash
env:
GH_TOKEN: ${{ github.token }}

Mirror:
if: github.repository == 'gyselax/gyselalibxx'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update GitLab
run: |
git remote add gitlab https://ci_bot:${GITLAB_PAT}@gitlab.maisondelasimulation.fr/gysela-developpers/gyselalibxx.git
git fetch gitlab public
git push gitlab main:public
shell: bash
env:
GITLAB_PAT: ${{secrets.GITLAB_PAT}}
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
toolchain: ${{ matrix.toolchain }}
merge_target: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
pr_number: ${{ github.event.pull_request.number }}
is_duplicate: ${{ needs.pre_job.outputs.should_skip != 'true' && github.event.pull_request.draft == false }}
is_duplicate: ${{ needs.pre_job.outputs.should_skip == 'true' && github.event.pull_request.draft == false }}

gpu_tests:
name: GPU Test
Expand All @@ -55,7 +55,7 @@ jobs:
merge_target: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
SHA: ${{ github.event.pull_request.head.sha }}
pr_number: ${{ github.event.pull_request.number }}
is_duplicate: ${{ needs.pre_job.outputs.should_skip != 'true' && github.event.pull_request.draft == false }}
is_duplicate: ${{ needs.pre_job.outputs.should_skip == 'true' && github.event.pull_request.draft == false }}
secrets: inherit

set_draft_failing:
Expand Down

0 comments on commit 67402b2

Please sign in to comment.