Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/create-redfs-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ jobs:
PR_TITLE: ${{ github.event.pull_request.title }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
REPO_NAME: ${{ github.repository }}
BRANCH_NAME: ${{ github.ref_name }}
run: |
pushd linux
echo -e "Sync with ${{ github.repository }} branch ${{ github.ref_name }}\n" > ../commit.msg
echo -e "Sync with ${{ github.repository }} branch ${{ github.ref_name }} at commit" >> ../commit.msg
echo -e "${{ github.sha }}\n" >> ../commit.msg
echo -e "Sync with $REPO_NAME branch $BRANCH_NAME\n" > ../commit.msg
echo -e "Sync with $REPO_NAME branch $BRANCH_NAME PR $PR_NUMBER" >> ../commit.msg
echo -e "$PR_TITLE\n" >> ../commit.msg
echo -e "(commit: ${{ github.sha }})\n" >> ../commit.msg
echo "Getting git log $BASE_SHA..$HEAD_SHA"
RET=0
git log --oneline $BASE_SHA..$HEAD_SHA >> ../commit.msg || RET=$?
git log --format="- %h %s" $BASE_SHA..$HEAD_SHA >> ../commit.msg || RET=$?
if [ $RET -ne 0 ]; then
echo "Failed to get git log with range, try to get log with single commit (too many commits?)."
git log --format="- %s" $HEAD_SHA >> ../commit.msg || RET=$?
Expand Down
Loading