From ea2b5aab33ef3bb6424070ec3810ab380aad3883 Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Fri, 5 Jul 2024 00:09:35 +0100 Subject: [PATCH] Update push-to-prod-nebraos-cloud-draft.yml (#898) * Update push-to-prod-nebraos-cloud-draft.yml * Update build-open-fleets.yml * Update commercial-file-update.yml * Update commercial-settings-update.yml * Update linter.yml * Update openfleet-file-update.yml * Update update-production.yml * Update update-gatewayrs.yml * Update security-audit.yml * Update python-tests.yml * Update push-to-testnet-nebraos-cloud.yml * Update push-to-testnet-nebraos-cloud-draft.yml * Update push-to-prod-nebraos-cloud.yml --- .github/workflows/build-open-fleets.yml | 2 +- .github/workflows/commercial-file-update.yml | 2 +- .github/workflows/commercial-settings-update.yml | 2 +- .github/workflows/linter.yml | 4 ++-- .github/workflows/openfleet-file-update.yml | 2 +- .../workflows/push-to-prod-nebraos-cloud-draft.yml | 8 ++++---- .github/workflows/push-to-prod-nebraos-cloud.yml | 8 ++++---- .../push-to-testnet-nebraos-cloud-draft.yml | 12 ++++++------ .github/workflows/push-to-testnet-nebraos-cloud.yml | 12 ++++++------ .github/workflows/python-tests.yml | 6 +++--- .github/workflows/security-audit.yml | 6 +++--- .github/workflows/update-gatewayrs.yml | 4 ++-- .github/workflows/update-production.yml | 2 +- 13 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build-open-fleets.yml b/.github/workflows/build-open-fleets.yml index 01503c41..b52625a9 100644 --- a/.github/workflows/build-open-fleets.yml +++ b/.github/workflows/build-open-fleets.yml @@ -17,7 +17,7 @@ jobs: echo "FLEET=$FLEET" >> $GITHUB_ENV - name: Trigger build action in ${{ env.REPO }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: build-open-fleet diff --git a/.github/workflows/commercial-file-update.yml b/.github/workflows/commercial-file-update.yml index f8e2c1fe..050b2e2f 100644 --- a/.github/workflows/commercial-file-update.yml +++ b/.github/workflows/commercial-file-update.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Trigger PR action in commercial-hotspot-software repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: file-update diff --git a/.github/workflows/commercial-settings-update.yml b/.github/workflows/commercial-settings-update.yml index 4cb2f5e9..3d8a0826 100644 --- a/.github/workflows/commercial-settings-update.yml +++ b/.github/workflows/commercial-settings-update.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Trigger PR action in commercial-hotspot-software repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: settings-update diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index fd896127..f8689530 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -36,7 +36,7 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 @@ -45,7 +45,7 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter/slim@v4 + uses: github/super-linter/slim@v6 env: VALIDATE_ALL_CODEBASE: true VALIDATE_PYTHON_FLAKE8: true diff --git a/.github/workflows/openfleet-file-update.yml b/.github/workflows/openfleet-file-update.yml index b5f89a47..1489edcd 100644 --- a/.github/workflows/openfleet-file-update.yml +++ b/.github/workflows/openfleet-file-update.yml @@ -27,7 +27,7 @@ jobs: echo "FLEET=$FLEET" >> $GITHUB_ENV - name: Trigger PR action in ${{ env.FLEET }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: file-update diff --git a/.github/workflows/push-to-prod-nebraos-cloud-draft.yml b/.github/workflows/push-to-prod-nebraos-cloud-draft.yml index 627b43c8..aed3b441 100644 --- a/.github/workflows/push-to-prod-nebraos-cloud-draft.yml +++ b/.github/workflows/push-to-prod-nebraos-cloud-draft.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: production @@ -59,14 +59,14 @@ jobs: python gen_docker_compose_by_variant.py "$variant" -o docker-compose.yml - name: Balena Deploy - uses: nebraltd/balena-cli-action@v16.7.0 + uses: nebraltd/balena-cli-action@v16.7.6 with: balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} balena_url: cloud.nebra.com balena_command: "deploy nebraltd/${{ env.REPO }} --debug --nocache --build --draft" - name: Upload docker-compose.yml artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-compose.yml.${{ env.REPO }} path: docker-compose.yml @@ -82,7 +82,7 @@ jobs: body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" - name: Trigger build action in ${{ env.REPO }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: build-open-fleet diff --git a/.github/workflows/push-to-prod-nebraos-cloud.yml b/.github/workflows/push-to-prod-nebraos-cloud.yml index f6f6e2b6..44ebbb21 100644 --- a/.github/workflows/push-to-prod-nebraos-cloud.yml +++ b/.github/workflows/push-to-prod-nebraos-cloud.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: production @@ -65,14 +65,14 @@ jobs: python gen_docker_compose_by_variant.py "$variant" -o docker-compose.yml - name: Balena Deploy - uses: nebraltd/balena-cli-action@v16.7.0 + uses: nebraltd/balena-cli-action@v16.7.6 with: balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} balena_url: cloud.nebra.com balena_command: "deploy nebraltd/${{ env.REPO }} --debug --nocache --build" - name: Upload docker-compose.yml artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-compose.yml.${{ env.REPO }} path: docker-compose.yml @@ -88,7 +88,7 @@ jobs: body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" - name: Trigger build action in ${{ env.REPO }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: build-open-fleet diff --git a/.github/workflows/push-to-testnet-nebraos-cloud-draft.yml b/.github/workflows/push-to-testnet-nebraos-cloud-draft.yml index 9b6384cd..d51d3103 100644 --- a/.github/workflows/push-to-testnet-nebraos-cloud-draft.yml +++ b/.github/workflows/push-to-testnet-nebraos-cloud-draft.yml @@ -13,7 +13,7 @@ jobs: sbc: [raspi, rockpi, rak, finestra, sensecap, og, controllino, pisces, cotx, pantherx1, linxdot, linxdot-rk3566, syncrobit, syncrobit-rkcm3, pycom, risinghf, midas, bobcat-px30, bobcat-rk3566] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python Libraries run: pip install -r requirements.txt @@ -83,21 +83,21 @@ jobs: fi - name: Balena Deploy - uses: nebraltd/balena-cli-action@v16.7.0 + uses: nebraltd/balena-cli-action@v16.7.6 with: balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} balena_url: cloud.nebra.com balena_command: "deploy nebraltd/${{ env.FLEET }} --debug --nocache --build --draft" - name: Upload docker-compose.yml artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-compose.yml.${{ env.REPO }}.testnet path: docker-compose.yml - name: Upload docker-compose.yml artifact (repo2) if: env.REPO2 != 'None' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-compose.yml.${{ env.REPO2 }}.testnet path: docker-compose.yml.${{ env.REPO2 }} @@ -124,7 +124,7 @@ jobs: body: "TESTNET: This is helium-miner-software release TESTNET-${{ env.LATEST_GA }}-${{ env.day }}" - name: Trigger build action in ${{ env.REPO }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: build-open-fleet @@ -132,7 +132,7 @@ jobs: client-payload: '{"release": "${{ env.LATEST_GA }}_GA", "tag": "${{ env.LATEST_GA }}", "firmware": "${{ env.FIRMWARE_SHORT_HASH }}", "branch": "${{ env.GITHUB_BRANCH }}"}' - name: Trigger build action in ${{ env.REPO2 }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 if: matrix.sbc == 'raspi' || matrix.sbc == 'rockpi' with: token: ${{ secrets.MR_BUMP }} diff --git a/.github/workflows/push-to-testnet-nebraos-cloud.yml b/.github/workflows/push-to-testnet-nebraos-cloud.yml index b13ccef4..bd19d06b 100644 --- a/.github/workflows/push-to-testnet-nebraos-cloud.yml +++ b/.github/workflows/push-to-testnet-nebraos-cloud.yml @@ -19,7 +19,7 @@ jobs: sbc: [raspi, rockpi, rak, finestra, sensecap, og, controllino, pisces, cotx, pantherx1, linxdot, linxdot-rk3566, syncrobit, syncrobit-rkcm3, pycom, risinghf, midas, bobcat-px30, bobcat-rk3566] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python Libraries run: pip install -r requirements.txt @@ -89,21 +89,21 @@ jobs: fi - name: Balena Deploy - uses: nebraltd/balena-cli-action@v16.7.0 + uses: nebraltd/balena-cli-action@v16.7.6 with: balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} balena_url: cloud.nebra.com balena_command: "deploy nebraltd/${{ env.FLEET }} --debug --nocache --build" - name: Upload docker-compose.yml artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-compose.yml.${{ env.REPO }}.testnet path: docker-compose.yml - name: Upload docker-compose.yml artifact (repo2) if: env.REPO2 != 'None' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-compose.yml.${{ env.REPO2 }}.testnet path: docker-compose.yml.${{ env.REPO2 }} @@ -130,7 +130,7 @@ jobs: body: "TESTNET: This is helium-miner-software release TESTNET-${{ env.LATEST_GA }}-${{ env.day }}" - name: Trigger build action in ${{ env.REPO }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.MR_BUMP }} event-type: build-open-fleet @@ -138,7 +138,7 @@ jobs: client-payload: '{"release": "${{ env.LATEST_GA }}_GA", "tag": "${{ env.LATEST_GA }}", "firmware": "${{ env.FIRMWARE_SHORT_HASH }}", "branch": "${{ env.GITHUB_BRANCH }}"}' - name: Trigger build action in ${{ env.REPO2 }} repo - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 if: matrix.sbc == 'raspi' || matrix.sbc == 'rockpi' with: token: ${{ secrets.MR_BUMP }} diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 47d44073..c8377648 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -4,12 +4,12 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Run PyTest diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index 065d0a22..00823ef8 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -5,12 +5,12 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Run bandit against code base diff --git a/.github/workflows/update-gatewayrs.yml b/.github/workflows/update-gatewayrs.yml index 65160fab..3c916ff3 100644 --- a/.github/workflows/update-gatewayrs.yml +++ b/.github/workflows/update-gatewayrs.yml @@ -6,7 +6,7 @@ jobs: gatewayrs-update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} - run: | @@ -20,7 +20,7 @@ jobs: sed -i -E "s/FIRMWARE_VERSION=.*/FIRMWARE_VERSION=$LATEST_GA/g" settings.ini sed -i -E "s/GATEWAYRS_VERSION=.*/GATEWAYRS_VERSION=$SHORT_SHA/g" settings.ini - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: commit-message: Update gateway-rs to latest GA ${{ env.LATEST_GA }} branch: gatewayrs-bump/${{ env.LATEST_GA }} diff --git a/.github/workflows/update-production.yml b/.github/workflows/update-production.yml index 07e930ac..0ccc299d 100644 --- a/.github/workflows/update-production.yml +++ b/.github/workflows/update-production.yml @@ -10,7 +10,7 @@ jobs: if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} fetch-depth: 0