diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9269d3b..a2c3144 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -44,10 +44,9 @@ jobs: - name: Set source permissions run: | chown -R nonroot:nonroot . - - name: Clone sedspkg - run: | - git clone --depth 1 https://${{ secrets.GITLAB_SECRET_TOKEN }}@gitlab.com/benmezger/sedspkgs.git $pkgsdir && \ - chown -R nonroot:nonroot $pkgsdir + - uses: webfactory/ssh-agent@v0.8.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Build packages run: | sudo -u nonroot just makepkg_flags=$makepkg_flags all @@ -57,11 +56,4 @@ jobs: sudo -u nonroot git diff - name: Commit and release run: | - cd $pkgsdir - - git config --global --add safe.directory $pkgsdir - git config --global user.email "me@benmezger.nl" - git config --global user.name "Ben Mezger" - git remote set-url origin https://oauth:${{ secrets.GITLAB_SECRET_TOKEN }}@gitlab.com/benmezger/sedspkgs.git - sudo -u nonroot just push-packages