From a5f05da58f2a008c439dd20ca30b716d89c42727 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 23 Jun 2025 12:16:02 +0200 Subject: [PATCH] Automatically checksum renovated packages --- .github/workflows/build.yaml | 35 ++++++++++++++++++++++----------- .github/workflows/renovate.yaml | 15 ++++---------- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2d381ce..cd0b5e4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,13 +1,20 @@ name: build on: - # TODO: Enable once we have conditional build logic built - # pull_request: - # paths: - # - 'srcpkgs/**' + pull_request: + paths: + - "srcpkgs/**" + types: + - opened + - reopened + - synchronize + branches: + - main push: paths: - - 'srcpkgs/**' + - "srcpkgs/**" + branches: + - main jobs: changedpkgs: @@ -36,14 +43,20 @@ jobs: build: name: Build packages runs-on: ubuntu-latest - needs: [ changedpkgs ] + needs: [changedpkgs] if: "needs.changedpkgs.outputs.changed != '' && !contains(github.event.pull_request.title, '[ci skip]') && !contains(github.event.pull_request.body, '[ci skip]')" strategy: fail-fast: false matrix: config: - - { arch: x86_64, host: x86_64, libc: glibc, platform: linux/amd64, test: 1 } + - { + arch: x86_64, + host: x86_64, + libc: glibc, + platform: linux/amd64, + test: 1, + } # - { arch: i686, host: i686, libc: glibc, platform: linux/386, test: 1 } # - { arch: aarch64, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 } # - { arch: armv7l, host: x86_64, libc: glibc, platform: linux/amd64, test: 0 } @@ -57,9 +70,9 @@ jobs: volumes: - /dev:/dev env: - ARCH: '${{ matrix.config.arch }}' - BOOTSTRAP: '${{ matrix.config.host }}' - TEST: '${{ matrix.config.test }}' + ARCH: "${{ matrix.config.arch }}" + BOOTSTRAP: "${{ matrix.config.host }}" + TEST: "${{ matrix.config.test }}" steps: - name: Prepare container @@ -135,7 +148,7 @@ jobs: deploy: name: Deploy repository runs-on: ubuntu-latest - needs: [ build ] + needs: [build] concurrency: group: ${{ github.workflow }}-${{ github.ref }}-deployment cancel-in-progress: false diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index 9cf2fd9..61ced21 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -1,15 +1,15 @@ name: renovate on: schedule: - - cron: '0 * * * *' + - cron: "0 * * * *" push: paths: - - '.github/**' # TODO: remove after debugging + - ".github/**" # TODO: remove after debugging env: - LOG_LEVEL: 'debug' + LOG_LEVEL: "info" RENOVATE_AUTODISCOVER: true - RENOVATE_AUTODISCOVER_FILTER: '${{ github.repository }}' + RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}" RENOVATE_PLATFORM: github # RENOVATE_PLATFORM_COMMIT: true # RENOVATE_BOT_NAME: 'breq' @@ -26,10 +26,3 @@ jobs: with: configurationFile: .github/renovate.json token: ${{ secrets.RENOVATE_TOKEN }} - - - - name: Find updated package - run: | - #!/usr/bin/env bash - set -euxo pipefail - echo "pkgbuild=$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} "*template" | head -1 | xargs dirname)" >> $GITHUB_ENV