Fix workflow updating permissions
Update workflow on the fly Set schedules git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7315 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7371f3b22d
commit
6930669bc0
1 changed files with 5 additions and 5 deletions
10
.github/workflows/copy-svn.yml
vendored
10
.github/workflows/copy-svn.yml
vendored
|
@ -10,6 +10,8 @@ on:
|
||||||
force:
|
force:
|
||||||
description: 'Force push (CAREFUL!)'
|
description: 'Force push (CAREFUL!)'
|
||||||
required: false
|
required: false
|
||||||
|
schedule:
|
||||||
|
- cron: '4 10 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
copy:
|
copy:
|
||||||
|
@ -44,12 +46,10 @@ 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: |
|
||||||
|
@ -81,11 +81,9 @@ jobs:
|
||||||
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"
|
git tag -l "$TAG_NAME"
|
||||||
echo XXX
|
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
|
||||||
|
@ -125,5 +123,7 @@ jobs:
|
||||||
rm -f svn2git-cache.tar.gz
|
rm -f svn2git-cache.tar.gz
|
||||||
tar czf svn2git-cache.tar.gz svn2git
|
tar czf svn2git-cache.tar.gz svn2git
|
||||||
git add svn2git-cache.tar.gz
|
git add svn2git-cache.tar.gz
|
||||||
|
cp svn2git/.github/workflows/* .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 origin svn2git-cache
|
git push --force git@github.com:${GITHUB_REPOSITORY}.git svn2git-cache
|
Loading…
Add table
Add a link
Reference in a new issue