diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb486dd..b5afce6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,11 +43,17 @@ jobs: steps: # Install git and other tools first to be able to use 'actions/checkout@v2' properly - name: Install required packages - run: dnf install --nogpgcheck -y tito gcc gcc-c++ make cmake git-core + run: dnf install --nogpgcheck -y tito gcc make cmake git-core # Clone repository and set everything for building of RPMs - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + # This step is required so Tito can properly read git history + # See https://github.com/actions/checkout/issues/766 + - name: Trust git repository path + run: | + git config --global --add safe.directory '*' - name: Create build directory run: rm -rf ./rpm_build; mkdir ./rpm_build