Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ COPY *.sh /
COPY *.py /
COPY *.ini /
COPY gitlint /.gitlint
COPY *.txt /

ENTRYPOINT [ "/entrypoint.sh" ]
15 changes: 15 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ inputs:
patchwork_token:
description: Patchwork token
required: true
config:
description: Configuration file or URL
required: false
default: /config.ini
email_message:
description: Email message file or URL
required: false
default: /default-email-message.txt
user:
description: User ID
required: false
default: 104215

runs:
using: 'docker'
Expand All @@ -26,3 +38,6 @@ runs:
GITHUB_TOKEN: ${{ inputs.github_token }}
EMAIL_TOKEN: ${{ inputs.email_token }}
PATCHWORK_TOKEN: ${{ inputs.patchwork_token }}
CONFIG: ${{ inputs.config }}
EMAIL: ${{ inputs.email_message }}
USER: ${{ inputs.user }}
15 changes: 15 additions & 0 deletions default-email-message.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:{}

---Test result---

{}

---
Regards,
Linux Bluetooth
5 changes: 4 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ echo "SHA: $GITHUB_SHA"
echo "REF: $GITHUB_REF"
echo "HEAD-REF: $GITHUB_HEAD_REF"
echo "BASE-REF: $GITHUB_BASE_REF"
echo "CONFIG: $CONFIG"
echo "EMAIL: $EMAIL"
echo "USER: $USER"
echo "PWD: $(pwd)"

git config --global user.name "$GITHUB_ACTOR"
Expand All @@ -32,4 +35,4 @@ git clone --depth=1 https://git.kernel.org/pub/scm/libs/ell/ell.git $ELL_PATH
PR=${GITHUB_REF#"refs/pull/"}
PR=${PR%"/merge"}

/run-ci.py -c /config.ini -p $PR -r $GITHUB_REPOSITORY -s $SRC_PATH -e $ELL_PATH -v
/run-ci.py -c $CONFIG -m $EMAIL -p $PR -r $GITHUB_REPOSITORY -s $SRC_PATH -e $ELL_PATH -v -u $USER
Loading