• R/O
  • HTTP
  • SSH
  • HTTPS

packages: Commit

Community maintained packages for ImmortalWrt.


Commit MetaInfo

Revision75ff4ba358aa0357f0af62cb980568bdc8d390a1 (tree)
Time2022-12-03 03:59:44
AuthorPaul Spooren <mail@apar...>
CommiterPaul Spooren

Log Message

ci: only comment AUTORELEASE deprecation if exists

If it doesn't exists, don't confuse the contributors.

Signed-off-by: Paul Spooren <mail@aparcar.org>

Change Summary

Incremental Difference

--- a/.github/workflows/check-autorelease-deprecation.yml
+++ b/.github/workflows/check-autorelease-deprecation.yml
@@ -28,6 +28,8 @@ jobs:
2828
2929 - name: Determine changed packages
3030 run: |
31+ RET=0
32+
3133 # only detect packages with changes
3234 PKG_ROOTS=$(find . -name Makefile | \
3335 grep -v ".*/src/Makefile" | \
@@ -46,14 +48,13 @@ jobs:
4648 done
4749
4850 if [ -n "$CONTAINS_AUTORELEASE" ]; then
51+ RET=1
4952 cat > "$GITHUB_WORKSPACE/pr_comment.md" << EOF
5053 Please do no longer set *PKG_RELEASE* to *AUTORELEASE* as the
5154 feature is deprecated. Please use an integer instead. Below is a
5255 list of affected packages including correct *PKG_RELEASE*:
5356
5457 EOF
55- else
56- echo "No usage of *AUTORELEASE* found in changes" > "$GITHUB_WORKSPACE/pr_comment.md"
5758 fi
5859
5960 for ROOT in $CONTAINS_AUTORELEASE; do
@@ -70,8 +71,11 @@ jobs:
7071 echo >> "$GITHUB_WORKSPACE/pr_comment.md"
7172 done
7273
74+ exit $RET
75+
7376 - name: Find Comment
7477 uses: peter-evans/find-comment@v2
78+ if: ${{ failure() }}
7579 id: fc
7680 with:
7781 issue-number: ${{ github.event.pull_request.number }}
@@ -79,6 +83,7 @@ jobs:
7983
8084 - name: Create or update comment
8185 uses: peter-evans/create-or-update-comment@v2
86+ if: ${{ failure() }}
8287 with:
8388 comment-id: ${{ steps.fc.outputs.comment-id }}
8489 issue-number: ${{ github.event.pull_request.number }}
Show on old repository browser