Skip to content

Commit 9262620

Browse files
committed
GH Action: Simplified format action
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent 584d8b1 commit 9262620

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/format.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ jobs:
3939
echo '```' >> commit_message.txt
4040
cat black_output.txt >> commit_message.txt
4141
echo '```' >> commit_message.txt
42-
- name: Commit changes
43-
if: hashFiles('git_diff_exists') != ''
44-
run: |
45-
git config user.name 'GitHub'
46-
git config user.email '<noreply@github.com>'
47-
shopt -s globstar
48-
git add src/cfengine_cli/*.py src/cfengine_cli/**/*.py tests/*.py tests/**/*.py
49-
git commit -S -F commit_message.txt
5042
- id: commit-message-from-file
5143
name: Parse commit message from file into variable
5244
if: hashFiles('git_diff_exists') != ''
@@ -59,6 +51,8 @@ jobs:
5951
uses: cfengine/create-pull-request@158a28c1bf5c08c846b8e7d26d13becbd4136eda # v7.0.7a
6052
with:
6153
title: Reformatted python code using Black formatter
54+
commit-message: Reformatted python code using Black formatter
55+
sign-commits: true
6256
body: ${{ steps.commit-message-from-file.outputs.body }}
6357
reviewers: |
6458
olehermanse

0 commit comments

Comments
 (0)