From 095be1ba5736bab39ba8ff78977f3e031d7b9964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?= Date: Wed, 13 Oct 2021 17:36:18 +0200 Subject: [PATCH] Github actions update (#3193) --- .github/labeler.yml | 35 +++++++++++++++++++++++++ .github/workflows/build-beta-images.yml | 10 +++---- .github/workflows/build-beta-kernel.yml | 1 + .github/workflows/labeler.yml | 11 ++++++++ 4 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..a796678524 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,35 @@ +# This configures label matching for PR's. +# +# The keys are labels, and the values are lists of minimatch patterns +# to which those labels apply. +# +# NOTE: This can only add labels, not remove them. +# NOTE: Due to YAML syntax limitations, patterns or labels which start +# with a character that is part of the standard YAML syntax must be +# quoted. +# +# Please keep the labels sorted and deduplicated. + +"c:u-boot": + - patch/u-boot/* + - patch/atf/* + - config/bootenv/* + - config/bootscripts/* + +"c:kernel": + - patch/kernel/* + - patch/misc/* + - config/kernel/* + - config/sources/* + +"c:build script": + - lib/* + +"c:desktop": + - config/desktop/* + +"c:cli": + - config/cli/* + +"c:ci": + - .github/* diff --git a/.github/workflows/build-beta-images.yml b/.github/workflows/build-beta-images.yml index c88870b2c2..11e22ea581 100644 --- a/.github/workflows/build-beta-images.yml +++ b/.github/workflows/build-beta-images.yml @@ -2,15 +2,15 @@ name: Build beta images on: workflow_dispatch: - inputs: +# inputs: # build_chunks: # description: 'Build chunks' # required: false # default: '22' - workflow_run: - workflows: ["Build beta kernel packages"] - types: - - completed +# workflow_run: +# workflows: ["Build beta kernel packages"] +# types: +# - completed jobs: Prepare: diff --git a/.github/workflows/build-beta-kernel.yml b/.github/workflows/build-beta-kernel.yml index 2662bdd9d7..ab5c82afc2 100644 --- a/.github/workflows/build-beta-kernel.yml +++ b/.github/workflows/build-beta-kernel.yml @@ -360,6 +360,7 @@ jobs: git-commit-gpgsign: true - name: Download artefacts + if: ${{ env.SKIP != 'yes' }} uses: actions/download-artifact@v2 with: name: hash diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..a0cea7c2e5 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Automatic Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"