Trying to fix author in ok check (#1920)

This commit is contained in:
hatal175 2023-09-10 20:26:29 +03:00 committed by GitHub
parent 8a146f81b6
commit c02c183eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ jobs:
sudo apt install -y libclang-16-dev sudo apt install -y libclang-16-dev
FILENAMES="${{ steps.changed-files-specific.outputs.all_changed_files }}" FILENAMES="${{ steps.changed-files-specific.outputs.all_changed_files }}"
CMD="./tp github-update-issues --personal-access-token ${{ secrets.PAT_TOKEN }} --debug --owner ${{ env.GITHUB_ORG }} --repo ${{ env.GITHUB_REPO }} --state-file ${{ env.STATE_FILE }}" CMD=(./tp github-update-issues --personal-access-token ${{ secrets.PAT_TOKEN }} --debug --owner ${{ env.GITHUB_ORG }} --repo ${{ env.GITHUB_REPO }} --state-file ${{ env.STATE_FILE }})
IFS=' ' read -ra FILE_ARRAY <<< "$FILENAMES" IFS=' ' read -ra FILE_ARRAY <<< "$FILENAMES"
INC_FOUND=false INC_FOUND=false
@ -76,8 +76,8 @@ jobs:
for FILE in "${FILE_ARRAY[@]}"; do for FILE in "${FILE_ARRAY[@]}"; do
AUTHOR=$(git log -1 --pretty=format:'%an' -- $FILE) AUTHOR=$(git log -1 --pretty=format:'%an' -- $FILE)
CMD="$CMD --filename $FILE --author '$AUTHOR'" CMD+=(--filename $FILE --author '$AUTHOR')
done done
# Update the status and assignees for every issue identified # Update the status and assignees for every issue identified
$CMD ${CMD[@]}