Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix staging workflow issue (#3036)

Dennis Kuijs6aee59fd324c
diff --git a/.github/workflows/extensions.yml b/.github/workflows/extensions.yml
index e82a48edd..1f4414e60 100644
--- a/.github/workflows/extensions.yml
+++ b/.github/workflows/extensions.yml
@@ -5,7 +5,7 @@ on:
version:
type: string
is_release:
- type: boolean
+ type: string
secrets:
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/extensions
runs-on: ubuntu-latest
needs: 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-notes
env:
GH_TOKEN: ${{ secrets.GH_EXTENSIONS_TOKEN }}
- VERSION: ${{ inputs.version }}
trigger-extensions-ci-cd:
name: Run CI/CD in openremote/extensions
runs-on: ubuntu-latest
needs: check-artifacts
steps:
- - 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.yml
index 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 }}