From 20822d7db8d8c7add37856e3bdbb9a0e3cef1935 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Tue, 5 Dec 2023 18:12:53 +0100 Subject: [PATCH] ci: fetch upstream tags when building from fork Fetch upstream tags when building from a Gluon fork. Signed-off-by: David Bauer --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ce8710..f0be523 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -180,6 +180,14 @@ jobs: fetch-depth: 0 fetch-tags: true + - name: Fetch upstream tags + # yamllint disable rule:line-length + if: ${{ needs.build-meta.outputs.gluon-repository != 'freifunk-gluon/gluon' }} + run: | + git -C gluon-gha-data/gluon remote add upstream https://github.com/freifunk-gluon/gluon.git + git -C gluon-gha-data/gluon fetch upstream --tags + # yamllint enable rule:line-length + - name: Print CPU info run: cat /proc/cpuinfo