Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
fix(ci): repair publish-docker-images.yml, which #696 left unparseable (#700)
Ron2933bf8dfa47
diff --git a/.github/workflows/publish-docker-images.yml b/.github/workflows/publish-docker-images.ymlindex 1746f437..f9137fb1 100644--- a/.github/workflows/publish-docker-images.yml+++ b/.github/workflows/publish-docker-images.yml@@ -71,26 +71,26 @@ jobs:if: github.ref_type == 'tag' || github.event.inputs.version != ''steps:- name: Send repository_dispatch to fleetbase/showcase- env:- DISPATCH_TOKEN: ${{ secrets.SHOWCASE_DISPATCH_TOKEN }}- TAG: ${{ github.event.inputs.version || github.ref_name }}- SHA: ${{ github.sha }}- ACTOR: ${{ github.actor }}- run: |- if [ -z "$DISPATCH_TOKEN" ]; then- echo "::warning::SHOWCASE_DISPATCH_TOKEN is not set; fleetbase/showcase was not notified of $TAG."- exit 0- fi- status=$(curl -sS -o /tmp/dispatch.out -w "%{http_code}" \- -X POST \- -H "Accept: application/vnd.github+json" \- -H "Authorization: Bearer $DISPATCH_TOKEN" \- -H "X-GitHub-Api-Version: 2022-11-28" \- https://api.github.com/repos/fleetbase/showcase/dispatches \- -d "{\"event_type\":\"fleetbase-release\",\"client_payload\":{\"tag\":\"$TAG\",\"sha\":\"$SHA\",\"actor\":\"$ACTOR\"}}")- if [ "$status" != "204" ]; then- echo "::error::Dispatch to fleetbase/showcase failed (HTTP $status)"- cat /tmp/dispatch.out- exit 1- fi- echo "Dispatched fleetbase-release ($TAG) to fleetbase/showcase"+ env:+ DISPATCH_TOKEN: ${{ secrets.SHOWCASE_DISPATCH_TOKEN }}+ TAG: ${{ github.event.inputs.version || github.ref_name }}+ SHA: ${{ github.sha }}+ ACTOR: ${{ github.actor }}+ run: |+ if [ -z "$DISPATCH_TOKEN" ]; then+ echo "::warning::SHOWCASE_DISPATCH_TOKEN is not set; fleetbase/showcase was not notified of $TAG."+ exit 0+ fi+ status=$(curl -sS -o /tmp/dispatch.out -w "%{http_code}" \+ -X POST \+ -H "Accept: application/vnd.github+json" \+ -H "Authorization: Bearer $DISPATCH_TOKEN" \+ -H "X-GitHub-Api-Version: 2022-11-28" \+ https://api.github.com/repos/fleetbase/showcase/dispatches \+ -d "{\"event_type\":\"fleetbase-release\",\"client_payload\":{\"tag\":\"$TAG\",\"sha\":\"$SHA\",\"actor\":\"$ACTOR\"}}")+ if [ "$status" != "204" ]; then+ echo "::error::Dispatch to fleetbase/showcase failed (HTTP $status)"+ cat /tmp/dispatch.out+ exit 1+ fi+ echo "Dispatched fleetbase-release ($TAG) to fleetbase/showcase"