From e42b41f2640a289ba535d2ebbe15aeb7239392d4 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Tue, 29 Aug 2023 15:39:47 +0200 Subject: [PATCH] Add safe.directory to Release action --- .github/workflows/Release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 1d1906b..b7c40d3 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -51,7 +51,9 @@ jobs: - name: RPM build MetricCollector id: rpmbuild - run: make RPM + run: | + git config --global --add safe.directory /__w/cc-metric-collector/cc-metric-collector + make RPM # AlmaLinux 8.5 is a derivate of RedHat Enterprise Linux 8 (UBI8), # so the created RPM both contain the substring 'el8' in the RPM file names @@ -119,7 +121,9 @@ jobs: - name: RPM build MetricCollector id: rpmbuild - run: make RPM + run: | + git config --global --add safe.directory /__w/cc-metric-collector/cc-metric-collector + make RPM # See: https://github.com/actions/upload-artifact - name: Save RPM as artifact @@ -168,6 +172,7 @@ jobs: id: dpkg-build run: | export PATH=/usr/local/go/bin:/usr/local/go/pkg/tool/linux_amd64:$PATH + git config --global --add safe.directory /__w/cc-metric-collector/cc-metric-collector make DEB - name: Rename DEB (add '_ubuntu20.04') id: debrename