1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Getting the CI to commit to a new branch

This commit is contained in:
Jamie Hewitt 2022-05-25 16:26:23 +01:00
parent f137ff1898
commit 608d64c259

View File

@ -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