From 608d64c2590ff944c66da687b7303ad4c33354c6 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 25 May 2022 16:26:23 +0100 Subject: [PATCH] Getting the CI to commit to a new branch --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90e52577..e38a45ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -220,8 +220,10 @@ jobs: run: | # Stage the file, commit and push git status + branch=${GITHUB_HEAD_REF#refs/heads/} + git checkout -b ${branch} + git status git add CodeExamples.md git commit -m "Updating CodeExamples.md" --untracked-files=no - branch=${GITHUB_HEAD_REF#refs/heads/} echo Pushing changes to branch: ${branch} git push origin HEAD:${branch} --force > /dev/null 2>&1