chore(revert): fix: alternative route of getting latest Gitea version
Revert 53375283d4
fix: alternative route of getting latest Gitea version
Use git ls-remote and git-mirror instead of the API
$ version=1.23
$ git ls-remote --refs --tags --sort=version:refname https://git-mirror.forgejo.org/go-gitea/gitea "v$version*" | sed -n -E -e "s|^.*/v($version[\.0-9]*)$|\1|p"
1.23.0
1.23.1
1.23.2
1.23.3
1.23.4
1.23.5
1.23.6
1.23.7
This commit is contained in:
parent
5a339800d3
commit
5b5dab8c13
3 changed files with 2 additions and 45 deletions
|
|
@ -1,36 +0,0 @@
|
|||
#
|
||||
#
|
||||
# https://code.forgejo.org/forgejo/end-to-end/settings/actions
|
||||
#
|
||||
# secrets.MIRROR_TOKEN_GITEA
|
||||
# https://code.forgejo.org/forgejo-mirror scope read:repository
|
||||
#
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'wip-gitea'
|
||||
|
||||
jobs:
|
||||
gitea_upgrade:
|
||||
name: gitea upgrade
|
||||
runs-on: lxc-bookworm
|
||||
steps:
|
||||
- uses: https://data.forgejo.org/actions/checkout@v4
|
||||
- name: prepare upload
|
||||
run: |
|
||||
mkdir -p /tmp/forgejo-upload
|
||||
touch /tmp/forgejo-upload/PLACEHOLDER
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: forgejo-dev
|
||||
path: /tmp/forgejo-upload
|
||||
- uses: ./.forgejo/prepare-end-to-end
|
||||
- name: gitea upgrades
|
||||
run: |
|
||||
su forgejo -c "./end-to-end.sh test_gitea_upgrades ${{ secrets.MIRROR_TOKEN_GITEA }}"
|
||||
- name: full logs
|
||||
if: always()
|
||||
run: su forgejo -c "./end-to-end.sh show_logs"
|
||||
Loading…
Add table
Add a link
Reference in a new issue