Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Oct 2, 2024
1 parent df92ed6 commit 0415a8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 0415a8e

Please sign in to comment.