Skip to content

Commit

Permalink
Backport to main fixes in publishing the template
Browse files Browse the repository at this point in the history
Summary:
This commit backports to main [facebook#47116](facebook#47116)

## Changelog
[Internal] - Backport fix to publishTemplate from 0.76 to main

Differential Revision: D65066047
  • Loading branch information
cipolleschi authored and facebook-github-bot committed Oct 28, 2024
1 parent cf8250a commit 4076866
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflow-scripts/__tests__/publishTemplate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('#publishTemplate', () => {
expect(github.rest.actions.createWorkflowDispatch).toHaveBeenCalledWith({
owner: 'react-native-community',
repo: 'template',
workflow_id: 'release.yml',
workflow_id: 'release.yaml',
ref: '0.76-stable',
inputs: {
dry_run: true,
Expand All @@ -66,7 +66,7 @@ describe('#publishTemplate', () => {
expect(github.rest.actions.createWorkflowDispatch).toHaveBeenCalledWith({
owner: 'react-native-community',
repo: 'template',
workflow_id: 'release.yml',
workflow_id: 'release.yaml',
ref: '0.76-stable',
inputs: {
dry_run: false,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflow-scripts/publishTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports.publishTemplate = async (github, version, dryRun = true) => {
await github.rest.actions.createWorkflowDispatch({
owner: 'react-native-community',
repo: 'template',
workflow_id: 'release.yml',
workflow_id: 'release.yaml',
ref,
inputs: {
dry_run: dryRun,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflow-scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

function run(...cmd) {
function run(cmd) {
return execSync(cmd, 'utf8').toString().trim();
}
module.exports.run = run;
Expand Down

0 comments on commit 4076866

Please sign in to comment.