ADD hr_attendance_excel_report module
This commit is contained in:
parent
2f43fdf27e
commit
bc13bd2335
|
|
@ -82,18 +82,25 @@ jobs:
|
|||
preprod_odex-event
|
||||
preprod_openeducat_erp-14.0.1.0
|
||||
)
|
||||
|
||||
# Check if branch is an exact reserved name
|
||||
for reserved in "${RESERVED_NAMES[@]}"; do
|
||||
if [[ "$BRANCH_NAME" == "$reserved" ]]; then
|
||||
echo "❌ Branch name '$BRANCH_NAME' is reserved. Deleting..."
|
||||
curl -s -X DELETE -H "Authorization: token $GH_TOKEN" https://api.github.com/repos/$REPO/git/refs/heads/$BRANCH_NAME
|
||||
curl -s -X DELETE \
|
||||
-H "Authorization: token $GH_TOKEN" \
|
||||
https://api.github.com/repos/$REPO/git/refs/heads/$BRANCH_NAME
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
# Check if branch name matches restricted patterns
|
||||
if [[ "$BRANCH_NAME" == master_* || "$BRANCH_NAME" == preprod_* || "$BRANCH_NAME" == dev_* ]]; then
|
||||
echo "❌ Branch name '$BRANCH_NAME' matches restricted pattern. Deleting..."
|
||||
curl -s -X DELETE -H "Authorization: token $GH_TOKEN" https://api.github.com/repos/$REPO/git/refs/heads/$BRANCH_NAME
|
||||
curl -s -X DELETE \
|
||||
-H "Authorization: token $GH_TOKEN" \
|
||||
https://api.github.com/repos/$REPO/git/refs/heads/$BRANCH_NAME
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Branch '$BRANCH_NAME' is allowed."
|
||||
|
||||
echo "✅ Branch '$BRANCH_NAME' is allowed."
|
||||
|
|
|
|||
Loading…
Reference in New Issue