From 5a6f39a0a4cd56de96c2a01158680b7bf271237f Mon Sep 17 00:00:00 2001 From: serinko <97586125+serinko@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:27:03 +0200 Subject: [PATCH] change CI/CD with git reset --- .github/workflows/cd-docs.yml | 4 ++-- .github/workflows/ci-docs.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd-docs.yml b/.github/workflows/cd-docs.yml index 23a6957259..aad003b7cd 100644 --- a/.github/workflows/cd-docs.yml +++ b/.github/workflows/cd-docs.yml @@ -41,8 +41,8 @@ jobs: # This is a workaround replacement which builds on the last working commit b332a6b55668f60988e36961f3f62a794ba82ddb and then on current branch - name: Save current branch to ~/current_branch run: git rev-parse --abbrev-ref HEAD > ~/current_branch - - name: Git pull & switch to b332a6b55668f60988e36961f3f62a794ba82ddb - run: git pull && git checkout b332a6b55668f60988e36961f3f62a794ba82ddb + - name: Git pull, reset & switch to b332a6b55668f60988e36961f3f62a794ba82ddb + run: git pull && git reset --hard && git checkout b332a6b55668f60988e36961f3f62a794ba82ddb - name: Build all projects in documentation/ & move to ~/dist/docs/ from b332a6b55668f60988e36961f3f62a794ba82ddb run: cd documentation && ./build_all_to_dist.sh diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml index d4d6eebd50..8c3da78984 100644 --- a/.github/workflows/ci-docs.yml +++ b/.github/workflows/ci-docs.yml @@ -46,8 +46,8 @@ jobs: # This is a workaround replacement which builds on the last working commit b332a6b55668f60988e36961f3f62a794ba82ddb and then on current branch - name: Save current branch to ~/current_branch run: git rev-parse --abbrev-ref HEAD > ~/current_branch - - name: Git pull & switch to b332a6b55668f60988e36961f3f62a794ba82ddb - run: git pull && git checkout b332a6b55668f60988e36961f3f62a794ba82ddb + - name: Git pull, reset & switch to b332a6b55668f60988e36961f3f62a794ba82ddb + run: git pull && git reset --hard && git checkout b332a6b55668f60988e36961f3f62a794ba82ddb - name: Build all projects in documentation/ & move to ~/dist/docs/ from b332a6b55668f60988e36961f3f62a794ba82ddb run: cd documentation && ./build_all_to_dist.sh