Skip to content

Commit 195f4cb

Browse files
committed
Fixing 'create or update file contents' branch prop
1 parent 53ba27e commit 195f4cb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ export default {
4646
},
4747
async run({ $ }) {
4848
const {
49-
github, ...data
49+
github, branch, ...data
5050
} = this;
51-
const response = await github.createOrUpdateFileContent(data);
51+
const response = await github.createOrUpdateFileContent({
52+
data: {
53+
...data,
54+
branch: branch?.split?.("/")[0],
55+
},
56+
});
5257

5358
$.export("$summary", `Successfully set contents of ${this.path}${this.branch
5459
? ` on branch ${this.branch}`

0 commit comments

Comments
 (0)