Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Failing after 1m45s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Failing after 1m38s

This commit is contained in:
Sthope 2025-03-17 21:55:21 +01:00
parent f4e8808dbf
commit 9521c365de

View File

@ -17,14 +17,15 @@ jobs:
- name: Compare Versions
run: |
GITHUB_REPO="wiredopposite/OGX-Mini" >> $GITEA_ENV
GITHUB_VERSION=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest" | jq -r .tag_name)
echo "GitHub Latest Version: $GITHUB_VERSION"
echo "GITHUB_VERSION=$GITHUB_VERSION" >> $GITEA_ENV
GITHUB_REPO="wiredopposite/OGX-Mini"
GITEA_URL="https://git.sthope.dev"
GITEA_REPO="sthope/OGX-Mini"
GITHUB_VERSION=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest" | jq -r .tag_name)
GITEA_VERSION=$(curl -s "$GITEA_URL/api/v1/repos/$GITEA_REPO/releases/latest" -H 'accept: application/json' | jq -r '.tag_name')
echo "GITHUB_REPO=$GITHUB_REPO" >> $GITEA_ENV
echo "GITHUB_VERSION=$GITHUB_VERSION" >> $GITEA_ENV
echo "GitHub Latest Version: $GITHUB_VERSION"
echo "Gitea Latest Version: $GITEA_VERSION"
echo "GITEA_VERSION=$GITEA_VERSION" >> $GITEA_ENV
@ -48,7 +49,7 @@ jobs:
run: |
apt-get update
apt-get install -y git python3 python3-pip cmake ninja-build gcc-arm-none-eabi
git clone --recursive https://github.com/${{ env.GITHUB_REPO }}.git ${{ gitea.workspace }}
git clone --recursive https://github.com/$GITHUB_REPO.git ${{ gitea.workspace }}
cd ${{ gitea.workspace }}
git fetch origin --tags --force
git submodule update --init --recursive