From 85d2202e43631e72b3fb3b4e50b7a7174939bf30 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Fri, 8 Sep 2023 09:39:36 +0200 Subject: [PATCH] action: manifest: Use the new Git tree checkout feature Use the feature introduced in: https://github.com/zephyrproject-rtos/action-manifest/pull/8 This requires a West workspace to be initialized, since it uses Manifest.from_file(). Signed-off-by: Carles Cufi --- .github/workflows/manifest.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manifest.yml b/.github/workflows/manifest.yml index 1ea0031fb56..49f67fb95b7 100644 --- a/.github/workflows/manifest.yml +++ b/.github/workflows/manifest.yml @@ -15,12 +15,23 @@ jobs: fetch-depth: 0 persist-credentials: false + - name: west setup + env: + BASE_REF: ${{ github.base_ref }} + working-directory: zephyrproject/zephyr + run: | + pip3 install west + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + west init -l . || true + - name: Manifest - uses: zephyrproject-rtos/action-manifest@a6d0c6e52bbbb7d6df23ceb42842edcb4582b8dc + uses: zephyrproject-rtos/action-manifest@f223dce288b0d8f30bfd57eb2b14b18c230a7d8b with: github-token: ${{ secrets.ZB_GITHUB_TOKEN }} manifest-path: 'west.yml' checkout-path: 'zephyrproject/zephyr' + use-tree-checkout: 'true' label-prefix: 'manifest-' verbosity-level: '1' labels: 'manifest'