mirror of https://github.com/zeldaret/tp.git
Trying to fix author in ok check (#1920)
This commit is contained in:
parent
8a146f81b6
commit
c02c183eec
|
@ -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[@]}
|
Loading…
Reference in New Issue