llllllllllllll
convert-to-yml / develop-branch (push) Failing after 21s Details

This commit is contained in:
giles 2023-10-23 02:35:31 +01:00
parent 2dd5378e5a
commit 619467527a
2 changed files with 17 additions and 13 deletions

View File

@ -25,27 +25,31 @@ jobs:
firstString=${{ github.ref_name }} firstString=${{ github.ref_name }}
secondString="develop" secondString="develop"
echo ::set-env name=DEVELOPMENT_BRANCH::${firstString/format\//"$secondString"\/} echo ::set-env name=DEVELOPMENT_BRANCH::${firstString/format\//"$secondString"\/}
- name: clone #- name: clone
run: | # run: |
git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned # git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned
mv ../cloned/.git .. # mv ../cloned/.git ..
rm -rf ../cloned # rm -rf ../cloned
cp -r . ../cloned # cp -r . ../cloned
rm -rf ../cloned/.git # rm -rf ../cloned/.git
mv ../.git ../cloned # mv ../.git ../cloned
mv .git/config ../cloned/.git # mv .git/config ../cloned/.git
rm -r ./* # rm -r ./*
rm -r .git # rm -r .git
mv ../cloned/* . # mv ../cloned/* .
mv ../cloned/.git . # 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.
CI_COMMIT_AUTHOR: Continuous Integration CI_COMMIT_AUTHOR: Continuous Integration
run: | run: |
git add -A
git stash
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 checkout master
git checkout -b ${{ env.DEVELOPMENT_BRANCH }} 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 }} "