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
CI/CD: Upgrade GitHub actions (#1393)
Wouter Bornf4e003e8ad6a
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.ymlindex 861bb4947..7f2a67152 100644--- a/.github/workflows/ci_cd.yml+++ b/.github/workflows/ci_cd.yml@@ -103,7 +103,7 @@ jobs:steps:- name: Cancel previous runs- uses: styfle/[email protected]+ uses: styfle/[email protected]with:access_token: ${{ github.token }}@@ -172,7 +172,7 @@ jobs:echo "ipv6=$PUBLIC_IPV6" >> $GITHUB_OUTPUT- name: Checkout- uses: actions/checkout@v3+ uses: actions/checkout@v4with:# This will only be available when run by workflow_dispatch otherwise will checkout branch/commit that triggered the workflowref: ${{ steps.inputs-and-secrets.outputs.COMMIT }}@@ -183,7 +183,7 @@ jobs:- name: Backend files changedid: backend-files-changedif: github.event_name == 'pull_request'- uses: tj-actions/changed-files@v35+ uses: tj-actions/changed-files@v45with:files_ignore: |.ci_cd/**@@ -199,7 +199,7 @@ jobs:- name: UI files changedid: ui-files-changedif: github.event_name == 'pull_request'- uses: tj-actions/changed-files@v35+ uses: tj-actions/changed-files@v45with:files: |ui/app/manager/**@@ -235,25 +235,25 @@ jobs:- name: Check deployment build.gradleid: check_deployment_gradle- uses: andstor/file-existence-action@v2+ uses: andstor/file-existence-action@v3with:files: "deployment/build.gradle"- name: Check deployment dockerfileid: check_deployment_dockerfile- uses: andstor/file-existence-action@v2+ uses: andstor/file-existence-action@v3with:files: "deployment/Dockerfile"- name: Check custom projectid: check_custom_project- uses: andstor/file-existence-action@v2+ uses: andstor/file-existence-action@v3with:files: "openremote,.gitmodules"- name: Check ci_cd existenceid: check_cicd_json- uses: andstor/file-existence-action@v2+ uses: andstor/file-existence-action@v3with:files: ".ci_cd/ci_cd.json"@@ -304,7 +304,7 @@ jobs:- name: Load manager tag cacheif: ${{ steps.check_cicd_json.outputs.files_exists == 'true' && github.event_name == 'schedule' }}- uses: actions/cache@v3+ uses: actions/cache@v4id: manager-tag-cachewith:path: |@@ -554,21 +554,21 @@ jobs:- name: Login to DockerHubif: ${{ steps.manager-docker-command.outputs.pushRequired == 'true' }}- uses: docker/login-action@v2+ uses: docker/login-action@v3with:username: ${{ steps.inputs-and-secrets.outputs._TEMP_DOCKERHUB_USER || steps.inputs-and-secrets.outputs.DOCKERHUB_USER }}password: ${{ steps.inputs-and-secrets.outputs._TEMP_DOCKERHUB_PASSWORD || steps.inputs-and-secrets.outputs.DOCKERHUB_PASSWORD }}- name: set up QEMUif: ${{ steps.manager-docker-command.outputs.value != '' || steps.deployment-docker-command.outputs.value != '' }}- uses: docker/setup-qemu-action@v2+ uses: docker/setup-qemu-action@v3with:platforms: linux/amd64,linux/aarch64- name: install buildxif: ${{ steps.manager-docker-command.outputs.value != '' || steps.deployment-docker-command.outputs.value != '' }}id: buildx- uses: docker/setup-buildx-action@v2+ uses: docker/setup-buildx-action@v3with:version: latestinstall: true@@ -576,7 +576,7 @@ jobs:- name: Set up JDK 17 and gradle cacheid: javaif: ${{ steps.install-command.outputs.value != '' || steps.test-backend-command.outputs.value != '' }}- uses: actions/setup-java@v3+ uses: actions/setup-java@v4with:distribution: 'temurin'java-version: '17'@@ -587,7 +587,7 @@ jobs:run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT- name: Yarn cache- uses: actions/cache@v3+ uses: actions/cache@v4if: steps.skip-cicd.outputs.value != 'true'id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)with:@@ -680,7 +680,7 @@ jobs:- name: Archive backend test resultsif: always()- uses: actions/upload-artifact@v3+ uses: actions/upload-artifact@v4with:name: backend-test-resultspath: test/build/reports/testsdiff --git a/.github/workflows/provision-account.yml b/.github/workflows/provision-account.ymlindex ea0058369..e80003176 100644--- a/.github/workflows/provision-account.yml+++ b/.github/workflows/provision-account.yml@@ -49,7 +49,7 @@ jobs:GITHUB_TOKEN: ${{ secrets._TEMP_ACCESS_TOKEN_FOR_READING_ORG_TEAMS }} # Personal access token used to query github (Requires scope: `read:org`)- name: Checkout- uses: actions/checkout@v3+ uses: actions/checkout@v4- name: Provision Accountif: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }}diff --git a/.github/workflows/provision-host.yml b/.github/workflows/provision-host.ymlindex b55e224b2..2900832fc 100644--- a/.github/workflows/provision-host.yml+++ b/.github/workflows/provision-host.yml@@ -61,7 +61,7 @@ jobs:GITHUB_TOKEN: ${{ secrets._TEMP_ACCESS_TOKEN_FOR_READING_ORG_TEAMS }} # Personal access token used to query github (Requires scope: `read:org`)- name: Checkout- uses: actions/checkout@v3+ uses: actions/checkout@v4- name: Provision Hostif: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }}diff --git a/.github/workflows/start-stop-host.yml b/.github/workflows/start-stop-host.ymlindex cf7f2aec6..02a6bbcd3 100644--- a/.github/workflows/start-stop-host.yml+++ b/.github/workflows/start-stop-host.yml@@ -25,7 +25,7 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v3+ uses: actions/checkout@v4- name: Perform Actionrun: |