mirror of https://github.com/fhem/fhem-mirror.git
recreate svn tags as fhem tags (#24)
* Update mirror.yml recreate svn tags as fhem tags
This commit is contained in:
parent
703a2c5e9f
commit
4deeddeb9e
|
@ -105,18 +105,20 @@ jobs:
|
||||||
echo "A permanent error occured"
|
echo "A permanent error occured"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
# - name: Recreate tags from svn
|
- name: Recreate tags from svn
|
||||||
# run: |
|
if: ${{ steps.fetchsvn.outputs.SVN_FETCH_STATUS == 'complete' }}
|
||||||
# for tag in `git branch -r | grep "tags/" | sed 's/ tags\///'`; do
|
working-directory: ./src/fhem-mirror
|
||||||
# git tag -a -m"Converting SVN tags" $tag refs/remotes/$tag
|
run: |
|
||||||
# done
|
git for-each-ref --format="%(refname:lstrip=-1) %(objectname)" refs/remotes/svn/tags/FHEM_*_? \
|
||||||
|
| while read BRANCH REF
|
||||||
# - name: Commit fetched files
|
do
|
||||||
# run: |
|
TAG_NAME=${BRANCH#FHEM_}
|
||||||
# cd "${GITHUB_WORKSPACE}/src/fhem-mirror";
|
TAG_NAME=$(echo $TAG_NAME | sed 's/_/./g')
|
||||||
# echo "Will now prepare push following directory structure to remote repo:";
|
BODY="$(git log -1 --format=format:%B $REF)"
|
||||||
# ls -la ;
|
echo "branch=$BRANCH ref=$REF parent=$(git rev-parse $REF^) tagname=$TAG_NAME body=$BODY" >&2
|
||||||
# git config --add remote.origin.push 'refs/remotes/svn/trunk:refs/heads/master';
|
git tag -a -f -m "$BODY" $TAG_NAME $REF^
|
||||||
|
# git branch -r -d origin/tags/$BRANCH
|
||||||
|
done
|
||||||
|
|
||||||
- name: Push force changes to master branch in same repo
|
- name: Push force changes to master branch in same repo
|
||||||
if: ${{ steps.fetchsvn.outputs.SVN_FETCH_STATUS == 'complete' }}
|
if: ${{ steps.fetchsvn.outputs.SVN_FETCH_STATUS == 'complete' }}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
# fhem-mirror
|
# fhem-mirror
|
||||||
READ-ONLY mirror of the [main Subversion repository trunk](http://svn.fhem.de/fhem/trunk), updated daily.
|
READ-ONLY mirror of the [main Subversion repository](http://svn.fhem.de/fhem/trunk), updated multiple times every day.
|
||||||
|
|
||||||
## Branches
|
## Branches
|
||||||
1. The [`master`](https://github.com/fhem/fhem-mirror/tree/master) branch hosts the current source code from [FHEM SVN Trunk](http://svn.fhem.de/fhem/trunk).
|
1. The [`master`](https://github.com/fhem/fhem-mirror/tree/master) branch hosts the current source code from [FHEM SVN Trunk](http://svn.fhem.de/fhem/trunk).
|
||||||
2. The [`travis`](https://github.com/fhem/fhem-mirror/tree/travis) branch is controlling the mirroring process, running on [Github Actions](https://github.com/fhem/fhem-mirror/actions/workflows/mirror.yml).
|
2. The [`travis`](https://github.com/fhem/fhem-mirror/tree/travis) branch is controlling the mirroring process, running on [Github Actions](https://github.com/fhem/fhem-mirror/actions/workflows/mirror.yml).
|
||||||
|
3. Under [`tags`](https://github.com/fhem/fhem-mirror/tags) FHEM Releases are mirrored also.
|
||||||
|
|
||||||
## Pull requests
|
## Pull requests
|
||||||
Pull requests to any other branch besides [`travis`](https://github.com/fhem/fhem-mirror/tree/travis) will be rejected.
|
Pull requests to any other branch besides [`travis`](https://github.com/fhem/fhem-mirror/tree/travis) will be rejected.
|
||||||
|
|
Loading…
Reference in New Issue