Skip to content

Commit

Permalink
.......
Browse files Browse the repository at this point in the history
  • Loading branch information
danjoa committed Nov 7, 2024
1 parent 5b8d8dd commit 9705ab1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/checkout
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ async function checkout (xmpl, ...requires) {
await write (base) .to ('package.json')
}

checkout['remote-service'] = ()=>
exports['remote-service'] = ()=>
checkout ('remote-service', 'API_BUSINESS_PARTNER')

checkout['messaging'] = ()=> Promise.all([
exports['messaging'] = ()=> Promise.all([
checkout ('messaging', 'messaging', 'API_BUSINESS_PARTNER'),
append ('\n'+`using from './incidents/field';`+'\n') .to ('app/services.cds') // add email fields to UI
])

// actually run the checkout...
checkout[process.argv[2]]?.().catch(console.error) || console.error (
`Usage: ${path.relative(process.cwd(),__filename)} ${Object.keys(checkout).join('|')}`
if (!module.parent) exports[process.argv[2]]?.().catch(console.error) || console.log (
`Usage: ${path.relative(process.cwd(),__filename)} ${Object.keys(exports).join('|')}`
)

// ------------------------------------------------------------------------
Expand Down

0 comments on commit 9705ab1

Please sign in to comment.