Update .gitea/workflows/build.yml
This commit is contained in:
parent
8fb5968b4d
commit
d23ff1f8ed
@ -23,8 +23,8 @@ jobs:
|
||||
GITEA_URL="https://git.sthope.dev"
|
||||
GITEA_REPO="sthope/OGX-Mini"
|
||||
|
||||
GITHUB_V=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest" | jq -r .tag_name)
|
||||
echo "GITHUB_VERSION=$GITHUB_V" >> $GITEA_ENV
|
||||
GITHUB_VERSION=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest" | jq -r .tag_name)
|
||||
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
|
||||
@ -38,7 +38,7 @@ jobs:
|
||||
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 $GITHUB_V ${GITHUB_V} $(GITHUB_V)" }'
|
||||
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 $GITHUB_VERSION ${GITHUB_VERSION} $(GITHUB_VERSION)" }'
|
||||
fi
|
||||
|
||||
- name: Installing dependencies & Cloning repository
|
||||
|
Loading…
x
Reference in New Issue
Block a user