From 0415a8e8d006b50bc370c8e75e9a7871804d52fc Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 2 Oct 2024 17:20:53 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a56b148ec..8ffa0627e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,10 +78,11 @@ jobs: if: env.exists == 'false' run: | #!/bin/bash - git remote add upstream https://github.com/LemmyNet/lemmy.git + git remote add upstream https://github.com/lemmynet/${{ github.event.repository.name }}.git git fetch upstream 2>/dev/null ahead=$(git rev-list --count upstream/${{ env.branch }}..${{ env.branch }}) behind=$(git rev-list --count ${{ env.branch }}..upstream/${{ env.branch }}) + git remote remove upstream [[ "$behind" == "0" ]] && exit 0 echo "Behind upstream: $behind commits" exit 33 @@ -199,6 +200,7 @@ jobs: tag: "v${{ steps.meta.outputs.version }}" title: "v${{ steps.meta.outputs.version }}" token: ${{ secrets.REPO_ACCESS_TOKEN }} + commit: '${{ env.branch }}' - name: Send mail if: env.exists == 'false'