100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Fix staging workflow issue (#3036)
Dennis Kuijs6aee59fd324c
diff --git a/.github/workflows/extensions.yml b/.github/workflows/extensions.ymlindex e82a48edd..1f4414e60 100644--- a/.github/workflows/extensions.yml+++ b/.github/workflows/extensions.yml@@ -5,7 +5,7 @@ on:version:type: stringis_release:- type: boolean+ type: stringsecrets:GH_EXTENSIONS_TOKEN:required: true@@ -18,28 +18,23 @@ jobs:- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0- run: |chmod +x .ci_cd/check_artifacts.sh- .ci_cd/check_artifacts.sh "$VERSION"- env:- VERSION: ${{ inputs.version }}+ .ci_cd/check_artifacts.sh "${{ inputs.version }}"create-extensions-release:name: Create new release in openremote/extensionsruns-on: ubuntu-latestneeds: check-artifacts- if: ${{ inputs.is_release == true }}+ if: ${{ inputs.is_release == 'true' }}steps:- - run: gh release create $VERSION -R openremote/extensions --generate-notes+ - run: gh release create "${{ inputs.version }}" -R openremote/extensions --generate-notesenv:GH_TOKEN: ${{ secrets.GH_EXTENSIONS_TOKEN }}- VERSION: ${{ inputs.version }}trigger-extensions-ci-cd:name: Run CI/CD in openremote/extensionsruns-on: ubuntu-latestneeds: check-artifactssteps:- - run: gh workflow run ci_cd.yml -R openremote/extensions -f VERSION="$VERSION" -f IS_RELEASE="$IS_RELEASE"+ - run: gh workflow run ci_cd.yml -R openremote/extensions -f VERSION="${{ inputs.version }}" -f IS_RELEASE="${{ inputs.is_release }}"env:GH_TOKEN: ${{ github.token }}- VERSION: ${{ inputs.version }}- IS_RELEASE: ${{ inputs.is_release }}diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.ymlindex c752f2dde..d8d1926d7 100644--- a/.github/workflows/staging.yml+++ b/.github/workflows/staging.yml@@ -198,12 +198,12 @@ jobs:extensions:name: Extensions- needs: [install-dist, publish-maven, publish-npm]+ needs: [detect-changes, install-dist, publish-maven, publish-npm]if: ${{ !failure() && !cancelled() }}uses: "./.github/workflows/extensions.yml"with:version: ${{ needs.install-dist.outputs.npmTag }}- is_release: ${{ steps.get-version-details.outputs.is_release }}+ is_release: ${{ needs.detect-changes.outputs.is_release }}secrets:GH_EXTENSIONS_TOKEN: ${{ secrets._TEMP_GH_EXTENSIONS_TOKEN }}