Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Mirror SCP GitLab repo #187

Mirror SCP GitLab repo

Mirror SCP GitLab repo #187

#
# Arm SCP/MCP Software
# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
name: Mirror SCP GitLab repo
on:
schedule:
# Runs every day at 8 AM
- cron: '0 8 * * *'
permissions:
contents: write
jobs:
mirror:
name: gitlab-mirror
# Only 1 mirror job needs to run at once
concurrency: mirror
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Checks out the github repo
repository: ${{ github.repository }}
path: target-repo
ref: master
- name: Force-push Gitlab -> Github
run: |
cd target-repo &&
git remote add gitlab https://git.gitlab.arm.com/firmware/SCP-firmware.git
git fetch gitlab main
git push -f origin FETCH_HEAD:refs/heads/master --tags