logical_disk: Fix failed to get disk ID for dynamic volumes (#1544)

This commit is contained in:
Jan-Otto Kröpke
2024-07-31 15:02:29 +02:00
committed by GitHub
parent 4635be8c0c
commit 6cecc735df
2 changed files with 35 additions and 7 deletions

View File

@@ -28,4 +28,19 @@ jobs:
bug
docs
chore
&& exit 1
&& exit 1
title:
name: check title prefix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: check
run: |
PR_TITLE_PREFIX=$(echo "$PR_TITLE" | cut -d':' -f1)
if [[ ! -d "pkg/collector/$PR_TITLE_PREFIX" ]] || [[ "$PR_TITLE_PREFIX" == "chore" ]] || [[ "$PR_TITLE_PREFIX" == "*" ]]; then
echo "PR title must start with an name of an collector package"
echo "Example: 'logical_disk: description'"
exit 1
fi
env:
PR_TITLE: ${{ github.event.pull_request.title }}