mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Update changelog-pr.yml / Add Check
This commit is contained in:
parent
a4696475d5
commit
aab8be4544
14
.github/workflows/changelog-pr.yml
vendored
14
.github/workflows/changelog-pr.yml
vendored
@ -3,7 +3,6 @@ name: Create Changelog Pull Request
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@ -38,6 +37,19 @@ jobs:
|
||||
echo "LATEST_DATE=$LATEST_DATE" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Check if CHANGELOG.md was modified
|
||||
id: changelog-check
|
||||
run: |
|
||||
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
|
||||
echo "Changed files: $CHANGED_FILES"
|
||||
if echo "$CHANGED_FILES" | grep -q 'CHANGELOG.md'; then
|
||||
echo "Changes detected in CHANGELOG.md, skipping additional checks."
|
||||
echo "changelog_modified=true" >> $GITHUB_ENV
|
||||
else
|
||||
echo "No changes to CHANGELOG.md, continuing with protection checks."
|
||||
echo "changelog_modified=false" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Get categorized pull requests
|
||||
id: get-categorized-prs
|
||||
uses: actions/github-script@v7
|
||||
|
Loading…
Reference in New Issue
Block a user