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 93a82c1 commit b2f67f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/checkout
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ async function checkout (xmpl, ...requires) {
await write (base) .to ('package.json')
}

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

checkout['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...
const [,,$1] = process.argv
checkout[$1]?.().catch(console.error)
|| console.log('Usage: ./checkout remote-service | messaging')
if ($1 in checkout) checkout[$1]().catch(console.error)
else console.log('Usage: ./checkout remote-service | messaging')

// ------------------------------------------------------------------------
// fixes for missing features in older cds versions
Expand Down

0 comments on commit b2f67f4

Please sign in to comment.