Skip to content

Commit c4f6b9e

Browse files
committed
github actions: Fetch the github scripts from main
Otherwise, creating the pull request fails because the scripts are not present in that specific branch. Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
1 parent e0438fb commit c4f6b9e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/kernel-build-and-test-x86_64.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,12 @@ jobs:
481481
git log -1 $commit --format=%B | awk 'BEGIN{print "```"} /^$/{empty++} empty==2{exit} {print} END{print "```"}' >> /tmp/commit_message.txt
482482
done
483483
484+
- name: Fetch PR body script from main
485+
run: |
486+
git fetch origin main:main
487+
git checkout origin/main -- .github/scripts/create-pr-body.sh
488+
chmod +x .github/scripts/create-pr-body.sh
489+
484490
- name: Create Pull Request
485491
env:
486492
GH_TOKEN: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }}
@@ -514,7 +520,6 @@ jobs:
514520
fi
515521
516522
# Create PR body using script
517-
chmod +x .github/scripts/create-pr-body.sh
518523
.github/scripts/create-pr-body.sh \
519524
"${{ steps.build_info.outputs.build_time }}" \
520525
"${{ steps.build_info.outputs.total_time }}" \

0 commit comments

Comments
 (0)