From 3cfb36b1424302f67cd15214c9f9377b619bfa9d Mon Sep 17 00:00:00 2001 From: James Blair Date: Sat, 26 Jun 2021 15:31:35 +1200 Subject: [PATCH] Update mirroring to occur for all refs. --- .gitlab-ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 837c86a..2a29e2f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,14 +18,10 @@ push_github: url: github.com/jmhbnz/raspi-k3s script: # Output git status - - git checkout master && git pull && git status + - git checkout "${CI_COMMIT_BRANCH}" && git pull && git status # Add a new remote for github - git remote add github git@github.com:jmhbnz/raspi-k3s.git || true # Push to the new remote - - git push github master - - only: - refs: - - master + - git push github "${CI_COMMIT_BRANCH}"