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
Implement checkout for commit input in CI (#2958)
Koen3f5f2a04e88f
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymlindex d572d0f3a..194b78ef7 100644--- a/.github/workflows/deploy.yml+++ b/.github/workflows/deploy.yml@@ -16,7 +16,7 @@ on:description: 'Delete data before starting'type: booleanCOMMIT:- description: 'Repo branch or commit SHA to checkout'+ description: 'Repo branch or commit SHA to checkout. WARNING: Picking an older commit may cause pipeline failures if build/deploy steps are missing or incompatible.'OR_HOSTNAME:description: 'Host to deploy to (e.g. demo.openremote.app)'OR_ADMIN_PASSWORD:@@ -48,6 +48,8 @@ jobs:needs: is-main-repoif: ${{ needs.is-main-repo.outputs.value == 'true' }}uses: "./.github/workflows/install-dist.yml"+ with:+ COMMIT: ${{ inputs.COMMIT }}deployment:name: Deployment@@ -56,4 +58,5 @@ jobs:uses: "./.github/workflows/deployment.yml"with:INPUTS: ${{ toJSON(inputs) }}+ COMMIT: ${{ inputs.COMMIT }}secrets: inheritdiff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.ymlindex d796cf54d..40a69fec0 100644--- a/.github/workflows/deployment.yml+++ b/.github/workflows/deployment.yml@@ -4,6 +4,9 @@ on:inputs:INPUTS:type: string+ COMMIT:+ type: string+ description: 'Repo branch or commit SHA to checkout'jobs:deployment:@@ -12,6 +15,7 @@ jobs:steps:- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0with:+ ref: ${{ inputs.COMMIT }}lfs: true # Enable Git LFS plugin to fetch *.mbtiles- name: Get version detailsdiff --git a/.github/workflows/install-dist.yml b/.github/workflows/install-dist.ymlindex 2bf78fbee..67d43e30c 100644--- a/.github/workflows/install-dist.yml+++ b/.github/workflows/install-dist.yml@@ -3,6 +3,9 @@ name: Install Diston:workflow_call:inputs:+ COMMIT:+ type: string+ description: 'Repo branch or commit SHA to checkout'skip:type: booleandescription: Skip condition to allow branch protection checks to pass@@ -24,6 +27,7 @@ jobs:steps:- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0with:+ ref: ${{ inputs.COMMIT }}lfs: true # Enable Git LFS plugin to fetch *.mbtiles- name: Check if main repo