Clean-up
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7316 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6930669bc0
commit
ac5e400712
2 changed files with 14 additions and 17 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: CI
|
name: Build, Test and Publish
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -14,7 +14,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
- name: Brew Dependencies
|
- name: Brew Dependencies
|
||||||
run: |
|
run: |
|
||||||
brew install scons mingw-w64 zlib
|
brew install scons mingw-w64 zlib
|
||||||
|
|
27
.github/workflows/copy-svn.yml
vendored
27
.github/workflows/copy-svn.yml
vendored
|
@ -18,15 +18,15 @@ jobs:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install git-svn
|
- name: Install git-svn
|
||||||
run: sudo add-apt-repository ppa:git-core/ppa && sudo apt update && sudo apt install git-svn
|
run: sudo add-apt-repository ppa:git-core/ppa && sudo apt update && sudo apt install git-svn
|
||||||
|
|
||||||
- name: Configure git
|
- name: Configure git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "kichik@gmail.com"
|
git config --global user.email "kichik@gmail.com"
|
||||||
git config --global user.name "Amir Szekely"
|
git config --global user.name "Amir Szekely"
|
||||||
|
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
id: restore-cache
|
id: restore-cache
|
||||||
run: |
|
run: |
|
||||||
|
@ -46,16 +46,18 @@ jobs:
|
||||||
else
|
else
|
||||||
echo '::set-output name=cache-hit::false'
|
echo '::set-output name=cache-hit::false'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Initial SVN clone
|
- name: Initial SVN clone
|
||||||
if: steps.restore-cache.outputs.cache-hit != 'true'
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
git svn clone -A.github/workflows/svn-authors -s https://svn.code.sf.net/p/nsis/code/NSIS svn2git
|
git svn clone -A.github/workflows/svn-authors -s https://svn.code.sf.net/p/nsis/code/NSIS svn2git
|
||||||
|
|
||||||
- name: SVN fetch
|
- name: SVN fetch
|
||||||
working-directory: svn2git
|
working-directory: svn2git
|
||||||
run: |
|
run: |
|
||||||
git svn fetch --fetch-all
|
git svn fetch --fetch-all
|
||||||
git svn rebase
|
git svn rebase
|
||||||
|
|
||||||
- name: SVN branches
|
- name: SVN branches
|
||||||
working-directory: svn2git
|
working-directory: svn2git
|
||||||
run: |
|
run: |
|
||||||
|
@ -70,28 +72,23 @@ jobs:
|
||||||
git svn rebase
|
git svn rebase
|
||||||
done
|
done
|
||||||
git checkout master
|
git checkout master
|
||||||
|
|
||||||
- name: SVN tags
|
- name: SVN tags
|
||||||
working-directory: svn2git
|
working-directory: svn2git
|
||||||
run: |
|
run: |
|
||||||
git tag
|
|
||||||
|
|
||||||
git for-each-ref --format="%(refname:short) %(objectname)" refs/remotes/origin/tags \
|
git for-each-ref --format="%(refname:short) %(objectname)" refs/remotes/origin/tags \
|
||||||
| while read BRANCH REF
|
| while read BRANCH REF
|
||||||
do
|
do
|
||||||
TAG_NAME=`echo $BRANCH | cut -d / -f 3-`
|
TAG_NAME=`echo $BRANCH | cut -d / -f 3-`
|
||||||
BODY="$(git log -1 --format=format:%B $REF)"
|
BODY="$(git log -1 --format=format:%B $REF)"
|
||||||
echo "ref=$REF parent=$(git rev-parse $REF^) tagname=$TAG_NAME body=$BODY" >&2
|
echo "ref=$REF parent=$(git rev-parse $REF^) tagname=$TAG_NAME body=$BODY" >&2
|
||||||
git tag -l "$TAG_NAME"
|
|
||||||
echo XXX
|
|
||||||
if [ $(git tag -l "$TAG_NAME") ]; then
|
if [ $(git tag -l "$TAG_NAME") ]; then
|
||||||
echo tag already exists
|
echo tag already exists
|
||||||
else
|
else
|
||||||
git tag -a -m "$BODY" $TAG_NAME $REF^
|
git tag -a -m "$BODY" $TAG_NAME $REF^
|
||||||
#git branch -r -d $BRANCH
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Setup GitHub access
|
- name: Setup GitHub access
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.SSH_KEY }}
|
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||||
|
@ -100,7 +97,7 @@ jobs:
|
||||||
touch ~/.ssh/id_ed25519
|
touch ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
echo "$SSH_KEY" >> ~/.ssh/id_ed25519
|
echo "$SSH_KEY" >> ~/.ssh/id_ed25519
|
||||||
|
|
||||||
- name: Push to GitHub
|
- name: Push to GitHub
|
||||||
working-directory: svn2git
|
working-directory: svn2git
|
||||||
run: |
|
run: |
|
||||||
|
@ -111,13 +108,13 @@ jobs:
|
||||||
remote_repo="git@github.com:${GITHUB_REPOSITORY}.git"
|
remote_repo="git@github.com:${GITHUB_REPOSITORY}.git"
|
||||||
git push "$remote_repo" --all $flags
|
git push "$remote_repo" --all $flags
|
||||||
git push "$remote_repo" --tags $flags
|
git push "$remote_repo" --tags $flags
|
||||||
|
|
||||||
- name: GC
|
- name: GC
|
||||||
working-directory: svn2git
|
working-directory: svn2git
|
||||||
run: |
|
run: |
|
||||||
echo run garbage collection so caching does not fail while files are changing
|
echo run garbage collection so caching does not fail while files are changing
|
||||||
git gc --auto
|
git gc --auto
|
||||||
|
|
||||||
- name: Save cache
|
- name: Save cache
|
||||||
run: |
|
run: |
|
||||||
rm -f svn2git-cache.tar.gz
|
rm -f svn2git-cache.tar.gz
|
||||||
|
@ -126,4 +123,4 @@ jobs:
|
||||||
cp svn2git/.github/workflows/* .github/workflows/
|
cp svn2git/.github/workflows/* .github/workflows/
|
||||||
git add .github/workflows/*
|
git add .github/workflows/*
|
||||||
git commit --amend -m "update cache" svn2git-cache.tar.gz
|
git commit --amend -m "update cache" svn2git-cache.tar.gz
|
||||||
git push --force git@github.com:${GITHUB_REPOSITORY}.git svn2git-cache
|
git push --force git@github.com:${GITHUB_REPOSITORY}.git svn2git-cache
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue