Update .github/workflows/check-news-changes.yml

Co-authored-by: Pocs Norbert <norbertpocs0@gmail.com>

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Tue Jan 13 19:17:42 2026
(Merged from https://github.com/openssl/openssl/pull/29536)
This commit is contained in:
Neil Horman
2026-01-05 10:47:22 -05:00
parent 4e1ee1662a
commit faf48d097b

View File

@@ -1,3 +1,10 @@
# Copyright 2026 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
name: "Scan to check for NEWS/CHANGES suggestions"
on: pull_request
@@ -9,10 +16,10 @@ jobs:
scan_for_news_changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 2
fetch-depth: 0
- name: "Check if we already have a NEWS/CHANGES entry"
run: |
git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > ./names.txt
@@ -42,7 +49,7 @@ jobs:
if: ${{ env.FOUND_NEWS_CHANGES_ADDITION == 'no' }}
run: |
set +e
grep -q "include\/crypto" ./names.txt
grep -q "include\/openssl" ./names.txt
if [ $? -eq 0 ]; then
echo "Changes in this PR may impact public APIS's"
echo "NEED_NEWS_CHANGES=yes" >> $GITHUB_ENV