fix: update repo paths from echo/ to git-echo/ after account migration
This commit is contained in:
@ -18,7 +18,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -36,7 +36,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -59,7 +59,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -81,7 +81,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -106,7 +106,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -133,7 +133,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -158,7 +158,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -195,7 +195,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -238,7 +238,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -300,7 +300,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache curl
|
apk add --no-cache curl
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@ -336,7 +336,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
curl -sfL -H "Authorization: token ${{ secrets.GITEATOKEN }}" "https://gitea-lxc.moon-dragon.us/git-echo/linux_patch_api/archive/${GITHUB_SHA}.tar.gz" -o repo.tar.gz
|
||||||
tar -xzf repo.tar.gz --strip-components=1
|
tar -xzf repo.tar.gz --strip-components=1
|
||||||
rm -f repo.tar.gz
|
rm -f repo.tar.gz
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
|
|||||||
@ -13,7 +13,7 @@ TAG_NAME="${1:?Usage: upload-release.sh <tag_name> <file_path>}"
|
|||||||
FILE_PATH="${2}"
|
FILE_PATH="${2}"
|
||||||
|
|
||||||
GITEA_API="${GITEA_API:-https://gitea-lxc.moon-dragon.us/api/v1}"
|
GITEA_API="${GITEA_API:-https://gitea-lxc.moon-dragon.us/api/v1}"
|
||||||
REPO="echo/linux_patch_api"
|
REPO="git-echo/linux_patch_api"
|
||||||
|
|
||||||
if [ -z "$GITEA_TOKEN" ]; then
|
if [ -z "$GITEA_TOKEN" ]; then
|
||||||
echo "Error: GITEA_TOKEN environment variable not set"
|
echo "Error: GITEA_TOKEN environment variable not set"
|
||||||
|
|||||||
Reference in New Issue
Block a user