Skip to content

armgit / core

Public Imported from GitHub
0

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

CI/CD: Upgrade GitHub actions (#1393)

Wouter Bornf4e003e8ad6a
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 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@v4
with:
# This will only be available when run by workflow_dispatch otherwise will checkout branch/commit that triggered the workflow
ref: ${{ steps.inputs-and-secrets.outputs.COMMIT }}
@@ -183,7 +183,7 @@ jobs:
- name: Backend files changed
id: backend-files-changed
if: github.event_name == 'pull_request'
- uses: tj-actions/changed-files@v35
+ uses: tj-actions/changed-files@v45
with:
files_ignore: |
.ci_cd/**
@@ -199,7 +199,7 @@ jobs:
- name: UI files changed
id: ui-files-changed
if: github.event_name == 'pull_request'
- uses: tj-actions/changed-files@v35
+ uses: tj-actions/changed-files@v45
with:
files: |
ui/app/manager/**
@@ -235,25 +235,25 @@ jobs:
- name: Check deployment build.gradle
id: check_deployment_gradle
- uses: andstor/file-existence-action@v2
+ uses: andstor/file-existence-action@v3
with:
files: "deployment/build.gradle"
- name: Check deployment dockerfile
id: check_deployment_dockerfile
- uses: andstor/file-existence-action@v2
+ uses: andstor/file-existence-action@v3
with:
files: "deployment/Dockerfile"
- name: Check custom project
id: check_custom_project
- uses: andstor/file-existence-action@v2
+ uses: andstor/file-existence-action@v3
with:
files: "openremote,.gitmodules"
- name: Check ci_cd existence
id: check_cicd_json
- uses: andstor/file-existence-action@v2
+ uses: andstor/file-existence-action@v3
with:
files: ".ci_cd/ci_cd.json"
@@ -304,7 +304,7 @@ jobs:
- name: Load manager tag cache
if: ${{ steps.check_cicd_json.outputs.files_exists == 'true' && github.event_name == 'schedule' }}
- uses: actions/cache@v3
+ uses: actions/cache@v4
id: manager-tag-cache
with:
path: |
@@ -554,21 +554,21 @@ jobs:
- name: Login to DockerHub
if: ${{ steps.manager-docker-command.outputs.pushRequired == 'true' }}
- uses: docker/login-action@v2
+ uses: docker/login-action@v3
with:
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 QEMU
if: ${{ steps.manager-docker-command.outputs.value != '' || steps.deployment-docker-command.outputs.value != '' }}
- uses: docker/setup-qemu-action@v2
+ uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/aarch64
- name: install buildx
if: ${{ 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@v3
with:
version: latest
install: true
@@ -576,7 +576,7 @@ jobs:
- name: Set up JDK 17 and gradle cache
id: java
if: ${{ steps.install-command.outputs.value != '' || steps.test-backend-command.outputs.value != '' }}
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
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@v4
if: 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 results
if: always()
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: backend-test-results
path: test/build/reports/tests
diff --git a/.github/workflows/provision-account.yml b/.github/workflows/provision-account.yml
index 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 Account
if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }}
diff --git a/.github/workflows/provision-host.yml b/.github/workflows/provision-host.yml
index 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 Host
if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }}
diff --git a/.github/workflows/start-stop-host.yml b/.github/workflows/start-stop-host.yml
index 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 Action
run: |