fix: package name
This commit is contained in:
@@ -2,7 +2,7 @@ name: poll-upstream
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "*/15 * * * *"
|
- cron: "*/1 * * * *"
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
# Query our own dnf repo. If the version is there, we've already built it.
|
# Query our own dnf repo. If the version is there, we've already built it.
|
||||||
# Strip leading 'v' because RPM versions don't use it.
|
# Strip leading 'v' because RPM versions don't use it.
|
||||||
version="${UPSTREAM_TAG#v}"
|
version="${UPSTREAM_TAG#v}"
|
||||||
if curl -sSfI "https://rpm.lair.cafe/fedora/43/x86_64/mistralrs-server-cuda13-fa-${version}-1.fc43.x86_64.rpm" | grep -q '^HTTP.*200'; then
|
if curl --fail --silent --show-error --head --url "https://rpm.lair.cafe/fedora/43/x86_64/mistralrs-server-cuda13-${version}-1.fc43.x86_64.rpm" | grep -q '^HTTP.*200'; then
|
||||||
echo "already_built=true" >> "$GITHUB_OUTPUT"
|
echo "already_built=true" >> "$GITHUB_OUTPUT"
|
||||||
else
|
else
|
||||||
echo "already_built=false" >> "$GITHUB_OUTPUT"
|
echo "already_built=false" >> "$GITHUB_OUTPUT"
|
||||||
@@ -36,8 +36,9 @@ jobs:
|
|||||||
- name: Trigger build workflow
|
- name: Trigger build workflow
|
||||||
if: steps.published.outputs.already_built == 'false'
|
if: steps.published.outputs.already_built == 'false'
|
||||||
run: |
|
run: |
|
||||||
curl -sSfL -X POST \
|
curl --fail --silent --show-error --location \
|
||||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
--request POST \
|
||||||
-H 'Accept: application/json' \
|
--header "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/workflows/build-release.yml/dispatches" \
|
--header 'Accept: application/json' \
|
||||||
-d "{\"ref\":\"main\",\"inputs\":{\"tag\":\"${{ steps.upstream.outputs.tag }}\"}}"
|
--url "${{ github.server_url }}/api/v1/repos/${{ github.repository }}/actions/workflows/build-release.yml/dispatches" \
|
||||||
|
--data "{\"ref\":\"main\",\"inputs\":{\"tag\":\"${{ steps.upstream.outputs.tag }}\"}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user