Community maintained packages for ImmortalWrt.
Revision | 75ff4ba358aa0357f0af62cb980568bdc8d390a1 (tree) |
---|---|
Time | 2022-12-03 03:59:44 |
Author | Paul Spooren <mail@apar...> |
Commiter | Paul Spooren |
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>
@@ -28,6 +28,8 @@ jobs: | ||
28 | 28 | |
29 | 29 | - name: Determine changed packages |
30 | 30 | run: | |
31 | + RET=0 | |
32 | + | |
31 | 33 | # only detect packages with changes |
32 | 34 | PKG_ROOTS=$(find . -name Makefile | \ |
33 | 35 | grep -v ".*/src/Makefile" | \ |
@@ -46,14 +48,13 @@ jobs: | ||
46 | 48 | done |
47 | 49 | |
48 | 50 | if [ -n "$CONTAINS_AUTORELEASE" ]; then |
51 | + RET=1 | |
49 | 52 | cat > "$GITHUB_WORKSPACE/pr_comment.md" << EOF |
50 | 53 | Please do no longer set *PKG_RELEASE* to *AUTORELEASE* as the |
51 | 54 | feature is deprecated. Please use an integer instead. Below is a |
52 | 55 | list of affected packages including correct *PKG_RELEASE*: |
53 | 56 | |
54 | 57 | EOF |
55 | - else | |
56 | - echo "No usage of *AUTORELEASE* found in changes" > "$GITHUB_WORKSPACE/pr_comment.md" | |
57 | 58 | fi |
58 | 59 | |
59 | 60 | for ROOT in $CONTAINS_AUTORELEASE; do |
@@ -70,8 +71,11 @@ jobs: | ||
70 | 71 | echo >> "$GITHUB_WORKSPACE/pr_comment.md" |
71 | 72 | done |
72 | 73 | |
74 | + exit $RET | |
75 | + | |
73 | 76 | - name: Find Comment |
74 | 77 | uses: peter-evans/find-comment@v2 |
78 | + if: ${{ failure() }} | |
75 | 79 | id: fc |
76 | 80 | with: |
77 | 81 | issue-number: ${{ github.event.pull_request.number }} |
@@ -79,6 +83,7 @@ jobs: | ||
79 | 83 | |
80 | 84 | - name: Create or update comment |
81 | 85 | uses: peter-evans/create-or-update-comment@v2 |
86 | + if: ${{ failure() }} | |
82 | 87 | with: |
83 | 88 | comment-id: ${{ steps.fc.outputs.comment-id }} |
84 | 89 | issue-number: ${{ github.event.pull_request.number }} |