Compare commits

...

19 Commits

Author SHA1 Message Date
Sthope
0384211444 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Failing after 5s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Failing after 7s
2025-03-18 07:09:11 +01:00
Sthope
a694dfd7db Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Failing after 4s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Failing after 4s
2025-03-17 22:57:51 +01:00
Sthope
5d0a81dd31 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
2025-03-17 22:56:49 +01:00
Sthope
45da362201 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
2025-03-17 22:56:21 +01:00
Sthope
3fc0d5ca17 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
2025-03-17 22:55:47 +01:00
Sthope
86b8805b8e Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
2025-03-17 22:54:58 +01:00
Sthope
d23ff1f8ed Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
2025-03-17 22:53:45 +01:00
Sthope
8fb5968b4d Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Failing after 11s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Failing after 11s
2025-03-17 22:51:50 +01:00
Sthope
03fbe5f696 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
2025-03-17 22:50:46 +01:00
Sthope
0cfcebf316 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
2025-03-17 22:48:57 +01:00
Sthope
f3b247779d Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
2025-03-17 22:47:56 +01:00
Sthope
78f1ed509e Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
2025-03-17 22:46:20 +01:00
Sthope
2062c86e2d Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
2025-03-17 22:43:00 +01:00
Sthope
2b51e089c2 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Has been cancelled
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Has been cancelled
2025-03-17 22:40:16 +01:00
Sthope
8f5a1f4480 Update .gitea/workflows/build.yml
All checks were successful
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Successful in 2m44s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Successful in 2m56s
2025-03-17 22:33:00 +01:00
Sthope
dbd8bd4f01 Update .gitea/workflows/build.yml
All checks were successful
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Successful in 2m33s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Successful in 2m34s
2025-03-17 22:19:53 +01:00
Sthope
facfd511b1 Update .gitea/workflows/build.yml
All checks were successful
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Successful in 2m23s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Successful in 2m27s
2025-03-17 22:12:01 +01:00
Sthope
a26a150852 Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Failing after 4s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Failing after 4s
2025-03-17 22:11:41 +01:00
Sthope
a011b51d1c Update .gitea/workflows/build.yml
Some checks failed
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICO) (push) Failing after 4s
OGX-Mini / OGX-Mini (OGX-Mini, PI_PICOW) (push) Failing after 4s
2025-03-17 22:08:58 +01:00

View File

@ -18,31 +18,28 @@ jobs:
- name: Compare Versions
run: |
GITHUB_REPO="wiredopposite/OGX-Mini"
echo "GITHUB_REPO=$GITHUB_REPO" >> $GITEA_ENV
GITEA_URL="https://git.sthope.dev"
echo "GITEA_URL=$GITEA_URL" >> $GITEA_ENV
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
GITEA_VERSION=$(curl -s "$GITEA_URL/api/v1/repos/$GITEA_REPO/releases/latest" -H 'accept: application/json' | jq -r '.tag_name')
echo "GITEA_VERSION=$GITEA_VERSION" >> $GITEA_ENV
echo "GitHub Latest Version: $GITHUB_VERSION"
echo "Gitea Latest Version: $GITEA_VERSION"
echo "GITEA_VERSION=$GITEA_VERSION" >> $GITEA_ENV
if [ "$(printf '%s\n' "$GITEA_VERSION" "$GITHUB_VERSION" | sort -V | head -n1)" = "$GITHUB_VERSION" ]; then
echo "❌❌GitHub release is older or the same. Stopping workflow.❌❌"
#exit 1
PB_TOKEN="${{ secrets.PB_TOKEN }}"
PB_TITLE="${{ matrix.project_name }}"
curl -u ${PB_TOKEN}: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "${PB_TITLE}", "body": "${PB_TITLE} new: $GITHUB_VERSION" }'
exit 1
else
echo "✅✅GitHub release is newer. Continuing workflow.✅✅"
PB_TOKEN="${{ secrets.PB_TOKEN }}"
curl -u ${PB_TOKEN}: -X POST https://api.pushbullet.com/v2/pushes \
--header 'Content-Type: application/json' \
--data-binary '{"type": "note", \
"title": "${{ matrix.project_name }}", \
"body": "${{ matrix.project_name }} new: $GITHUB_VERSION" }'
curl -u ${PB_TOKEN}: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "${{ matrix.project_name }}", "body": "${{ matrix.target }} new firmware" }'
fi
- name: Installing dependencies & Cloning repository
@ -69,9 +66,9 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}.uf2
name: ${{ matrix.target }}-${{ env.GITHUB_VERSION }}.uf2
path: |
${{ gitea.workspace }}/output/${{ matrix.target }}.uf2
${{ gitea.workspace }}/output/*.uf2
- name: Upload Release
uses: akkuman/gitea-release-action@v1
@ -80,4 +77,4 @@ jobs:
tag_name: "${{ env.GITHUB_VERSION }}"
prerelease: false
files: |-
${{ gitea.workspace }}/output/${{ matrix.target }}.uf2
${{ gitea.workspace }}/output/*.uf2