Continuous Integration Build Artifacts xml files converted to yml
This commit is contained in:
parent
1585aa7f25
commit
9005093c9c
|
@ -1,21 +0,0 @@
|
||||||
name: Bump version
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: RouxAntoine/checkout@v3.5.4
|
|
||||||
- name: Bump version and push tag
|
|
||||||
id: tag_version
|
|
||||||
uses: mathieudutour/github-tag-action@v6.1
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.TEA_TOKEN }}
|
|
||||||
- name: Create a GitHub release
|
|
||||||
uses: ncipollo/release-action@v1
|
|
||||||
with:
|
|
||||||
tag: ${{ steps.tag_version.outputs.new_tag }}
|
|
||||||
name: Release ${{ steps.tag_version.outputs.new_tag }}
|
|
||||||
body: ${{ steps.tag_version.outputs.changelog }}
|
|
|
@ -21,6 +21,26 @@ jobs:
|
||||||
firstString=${{ github.ref_name }}
|
firstString=${{ github.ref_name }}
|
||||||
secondString="develop-"
|
secondString="develop-"
|
||||||
echo ::set-env name=PRODUCTION_BRANCH::${firstString/format-/"$secondString"}
|
echo ::set-env name=PRODUCTION_BRANCH::${firstString/format-/"$secondString"}
|
||||||
|
- name: clone
|
||||||
|
run: |
|
||||||
|
git remote -v
|
||||||
|
git clone ${{ github.serverUrl }}/${{ github.repository }} ../cloned
|
||||||
|
git -C ../cloned remote -v
|
||||||
|
|
||||||
|
git -C ../cloned status
|
||||||
|
mv ../cloned/.git ..
|
||||||
|
rm -rf ../cloned
|
||||||
|
cp -r . ../cloned
|
||||||
|
rm -rf ../cloned/.git
|
||||||
|
mv ../.git ../cloned
|
||||||
|
rm -r ./*
|
||||||
|
rm -r .git
|
||||||
|
ls
|
||||||
|
mv ../cloned/* .
|
||||||
|
mv ../cloned/.git .
|
||||||
|
|
||||||
|
ls -la
|
||||||
|
git status
|
||||||
- name: GIT commit and push all changed files
|
- name: GIT commit and push all changed files
|
||||||
env:
|
env:
|
||||||
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
|
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
|
||||||
|
@ -28,15 +48,15 @@ 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 config pull.rebase false
|
|
||||||
git checkout -b ${{ env.PRODUCTION_BRANCH }}
|
git checkout -b ${{ env.PRODUCTION_BRANCH }}
|
||||||
git add -A
|
git add -A
|
||||||
|
git status
|
||||||
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }} xml files converted to yml"
|
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }} xml files converted to yml"
|
||||||
git push -f origin HEAD:${{ env.PRODUCTION_BRANCH }}
|
git push -f https://giles:${{ secrets.TEA_TOKEN }}@sigyl.com/git/another-user/batch-example HEAD:${{ env.PRODUCTION_BRANCH }}
|
||||||
git fetch
|
|
||||||
git merge origin/master --allow-unrelated-histories --strategy-option=ours
|
|
||||||
git push origin HEAD:${{ env.PRODUCTION_BRANCH }}
|
|
||||||
- name: make pull request
|
- name: make pull request
|
||||||
|
#git fetch
|
||||||
|
# git merge origin/master --allow-unrelated-histories --strategy-option=ours
|
||||||
|
# git push origin HEAD:${{ env.PRODUCTION_BRANCH }}
|
||||||
run: |
|
run: |
|
||||||
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea
|
curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea
|
||||||
chmod +x ./tea
|
chmod +x ./tea
|
||||||
|
|
Loading…
Reference in New Issue