File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1111 newrelease :
1212 type : text
1313 required : true
14+ msysarch :
15+ type : text
16+ required : false
1417jobs :
1518 mirror :
1619 runs-on : ubuntu-latest
2932 SNAPSHOTRELEASE : ${{ inputs.snapshotrelease }}
3033 REPONAME : ${{ inputs.reponame }}
3134 NEWRELEASE : ${{ inputs.newrelease }}
35+ MSYSARCH : ${{ inputs.msysarch }}
3236 run : |
3337 python -m venv --system-site-packages .venv
3438 . .venv/bin/activate
3943 curl -LO "https://github.com/${{ github.repository }}/releases/download/${SNAPSHOTRELEASE}/${REPONAME}.db${sig}"
4044 done
4145 popd
42- python pacdb/examples/pacmirror_rsync.py -e "${REPONAME}" -n -v "rsync://repo.msys2.org/builds/mingw/${REPONAME}" "${NEWRELEASE}"
46+ if [[ -n "${MSYSARCH}" ]]; then
47+ subdir="msys/${MSYSARCH}"
48+ else
49+ subdir="mingw"
50+ fi
51+ python pacdb/examples/pacmirror_rsync.py -e "${REPONAME}" -n -v "rsync://repo.msys2.org/builds/${subdir}/${REPONAME}" "${NEWRELEASE}"
4352 # work around github issue with ~ in file name (turns into .)
4453 for a in "${NEWRELEASE}/"*~*; do
4554 mv "$a" "${a//\~/.}"
You can’t perform that action at this time.
0 commit comments