Skip to content

Commit adbd8bd

Browse files
committed
commit only main and readme.txt files
1 parent 2165624 commit adbd8bd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/update-requires-headers.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,11 @@ jobs:
252252
# Create and checkout the branch
253253
git checkout -b "${{ env.BRANCH_NAME }}"
254254
255-
# Commit changes
256-
git add .
255+
# Commit only the modified files
256+
git add ${{ env.PLUGIN_FILE_NAME }}
257+
if [ -f "readme.txt" ]; then
258+
git add readme.txt
259+
fi
257260
git commit -m "Update Requires headers"
258261
259262
# Push the branch

0 commit comments

Comments
 (0)