Skip to content

Commit 962d622

Browse files
committed
Fixing syntax error in 'create or update file contents'
1 parent 6e41e47 commit 962d622

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/github/actions/create-or-update-file-contents/create-or-update-file-contents.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ export default {
4949
github, branch, ...data
5050
} = this;
5151
const response = await github.createOrUpdateFileContent({
52-
data: {
53-
...data,
54-
branch: branch?.split?.("/")[0],
55-
},
52+
...data,
53+
branch: branch && branch.split("/")[0],
5654
});
5755

5856
$.export("$summary", `Successfully set contents of ${this.path}${this.branch

0 commit comments

Comments
 (0)