summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Sapkin2025-11-26 14:23:58 +0000
committerJiri Slachta2025-12-03 14:39:10 +0000
commit37ec321f5fdb54d7947bbf04b295331d14c1fe59 (patch)
treee3271b3b5aa2f91f4d1ce61c97197465582ebbe3
parent08e2bd12362bc7822caec2120be386cca5b99b5a (diff)
downloadtelephony-37ec321f5fdb54d7947bbf04b295331d14c1fe59.tar.gz
check-autorelease-deprecation: drop workflow
Drop the workflow since the setting has been deprecated over three years ago. Link: https://github.com/openwrt/packages/pull/27799#issuecomment-3506689211 Signed-off-by: George Sapkin <george@sapk.in>
-rw-r--r--.github/workflows/check-autorelease-deprecation.yml91
1 files changed, 0 insertions, 91 deletions
diff --git a/.github/workflows/check-autorelease-deprecation.yml b/.github/workflows/check-autorelease-deprecation.yml
deleted file mode 100644
index b85b324..0000000
--- a/.github/workflows/check-autorelease-deprecation.yml
+++ /dev/null
@@ -1,91 +0,0 @@
-name: Check autorelease deprecation
-
-on:
- pull_request_target:
- types: [opened, synchronize, converted_to_draft, ready_for_review, edited]
-
-jobs:
- build:
- name: Check autorelease deprecation
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
-
- permissions:
- pull-requests: write
-
- steps:
- - uses: actions/checkout@v3
- with:
- ref: ${{ github.event.pull_request.head.sha }}
- fetch-depth: 0
-
- - name: Determine branch name
- run: |
- BRANCH="${GITHUB_BASE_REF#refs/heads/}"
- echo "Building for $BRANCH"
- echo "BRANCH=$BRANCH" >> $GITHUB_ENV
-
- - name: Determine changed packages
- run: |
- RET=0
-
- # only detect packages with changes
- PKG_ROOTS=$(find . -name Makefile | \
- grep -v ".*/src/Makefile" | \
- sed -e 's@./\(.*\)/Makefile@\1/@')
- CHANGES=$(git diff --diff-filter=d --name-only origin/$BRANCH...)
-
- for ROOT in $PKG_ROOTS; do
- for CHANGE in $CHANGES; do
- if [[ "$CHANGE" == "$ROOT"* ]]; then
- if grep -q '$(AUTORELEASE)' "$ROOT/Makefile"; then
- CONTAINS_AUTORELEASE+="$ROOT"
- fi
- break
- fi
- done
- done
-
- if [ -n "$CONTAINS_AUTORELEASE" ]; then
- RET=1
- cat > "$GITHUB_WORKSPACE/pr_comment.md" << EOF
- Please do no longer set *PKG_RELEASE* to *AUTORELEASE* as the
- feature is deprecated. Please use an integer instead. Below is a
- list of affected packages including correct *PKG_RELEASE*:
-
- EOF
- fi
-
- for ROOT in $CONTAINS_AUTORELEASE; do
- echo -n " - ${ROOT}Makefile: PKG_RELEASE:=" >> "$GITHUB_WORKSPACE/pr_comment.md"
- last_bump="$(git log --pretty=format:'%h %s' "$ROOT" |
- grep --max-count=1 -e ': [uU]pdate to ' -e ': [bB]ump to ' |
- cut -f 1 -d ' ')"
-
- if [ -n "$last_bump" ]; then
- echo -n $(($(git rev-list --count "$last_bump..HEAD" "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
- else
- echo -n $(($(git rev-list --count HEAD "$ROOT") + 2)) >> "$GITHUB_WORKSPACE/pr_comment.md"
- fi
- echo >> "$GITHUB_WORKSPACE/pr_comment.md"
- done
-
- exit $RET
-
- - name: Find Comment
- uses: peter-evans/find-comment@v2
- if: ${{ failure() }}
- id: fc
- with:
- issue-number: ${{ github.event.pull_request.number }}
- comment-author: 'github-actions[bot]'
-
- - name: Create or update comment
- uses: peter-evans/create-or-update-comment@v2
- if: ${{ failure() }}
- with:
- comment-id: ${{ steps.fc.outputs.comment-id }}
- issue-number: ${{ github.event.pull_request.number }}
- body-file: 'pr_comment.md'
- edit-mode: replace