Skip to content

Commit 007a8e1

Browse files
authored
[LOCAL] Fix template publishing (#47116)
1 parent 1be8c51 commit 007a8e1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflow-scripts/__tests__/publishTemplate-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('#publishTemplate', () => {
4646
expect(github.rest.actions.createWorkflowDispatch).toHaveBeenCalledWith({
4747
owner: 'react-native-community',
4848
repo: 'template',
49-
workflow_id: 'release.yml',
49+
workflow_id: 'release.yaml',
5050
ref: '0.76-stable',
5151
inputs: {
5252
dry_run: true,
@@ -66,7 +66,7 @@ describe('#publishTemplate', () => {
6666
expect(github.rest.actions.createWorkflowDispatch).toHaveBeenCalledWith({
6767
owner: 'react-native-community',
6868
repo: 'template',
69-
workflow_id: 'release.yml',
69+
workflow_id: 'release.yaml',
7070
ref: '0.76-stable',
7171
inputs: {
7272
dry_run: false,

.github/workflow-scripts/publishTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports.publishTemplate = async (github, version, dryRun = true) => {
4242
await github.rest.actions.createWorkflowDispatch({
4343
owner: 'react-native-community',
4444
repo: 'template',
45-
workflow_id: 'release.yml',
45+
workflow_id: 'release.yaml',
4646
ref,
4747
inputs: {
4848
dry_run: dryRun,

.github/workflow-scripts/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
const {execSync} = require('child_process');
1111

12-
function run(...cmd) {
12+
function run(cmd) {
1313
return execSync(cmd, 'utf8').toString().trim();
1414
}
1515
module.exports.run = run;

0 commit comments

Comments
 (0)