We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53ba27e commit 195f4cbCopy full SHA for 195f4cb
components/github/actions/create-or-update-file-contents/create-or-update-file-contents.mjs
@@ -46,9 +46,14 @@ export default {
46
},
47
async run({ $ }) {
48
const {
49
- github, ...data
+ github, branch, ...data
50
} = this;
51
- const response = await github.createOrUpdateFileContent(data);
+ const response = await github.createOrUpdateFileContent({
52
+ data: {
53
+ ...data,
54
+ branch: branch?.split?.("/")[0],
55
+ },
56
+ });
57
58
$.export("$summary", `Successfully set contents of ${this.path}${this.branch
59
? ` on branch ${this.branch}`
0 commit comments