llllllllllllll
convert-to-yml / develop-branch (push) Successful in 30s Details

This commit is contained in:
giles 2023-10-23 02:45:50 +01:00
parent a4e8ad5d66
commit a4b02e3aad
1 changed files with 14 additions and 19 deletions

View File

@ -26,19 +26,20 @@ jobs:
secondString="develop" secondString="develop"
echo ::set-env name=DEVELOPMENT_BRANCH::${firstString/format\//"$secondString"\/} echo ::set-env name=DEVELOPMENT_BRANCH::${firstString/format\//"$secondString"\/}
git status git status
#- name: clone - name: clone
# run: | run: |
# git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned
# mv ../cloned/.git .. git -C ../cloned checkout -b $DEVELOPMENT_BRANCH
# rm -rf ../cloned mv ../cloned/.git ..
# cp -r . ../cloned rm -rf ../cloned
# rm -rf ../cloned/.git cp -r . ../cloned
# mv ../.git ../cloned rm -rf ../cloned/.git
# mv .git/config ../cloned/.git mv ../.git ../cloned
# rm -r ./* mv .git/config ../cloned/.git
# rm -r .git rm -r ./*
# mv ../cloned/* . rm -r .git
# mv ../cloned/.git . mv ../cloned/* .
mv ../cloned/.git .
- name: GIT commit and push all changed files - name: GIT commit and push all changed files
env: env:
CI_COMMIT_MESSAGE: converted to yml for review. CI_COMMIT_MESSAGE: converted to yml for review.
@ -46,12 +47,6 @@ jobs:
run: | run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com" git config --global user.email "username@users.noreply.github.com"
git fetch
git add -A
git stash
git checkout master
git checkout -b ${{ env.DEVELOPMENT_BRANCH }}
git stash pop
git add -A git add -A
git status git status
git commit -a -m "${{ github.ref_name }} -> ${{ env.DEVELOPMENT_BRANCH }} " git commit -a -m "${{ github.ref_name }} -> ${{ env.DEVELOPMENT_BRANCH }} "