Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support updating an action with new versions #75

Merged
merged 2 commits into from
Jan 27, 2021

Conversation

iamjem
Copy link
Contributor

@iamjem iamjem commented Jan 27, 2021

Description

Syntax-wise, this looks the same as actions create, only you need to provide the action id for the --name flag:

$./auth0 actions update --name b448822b-cd98-46f9-badd-7b6ebd9b5381 --script "module.exports = async (event, context) => {console.log("update!");return {};}"                      
Updating action... done                                                                                                                                                              
                                                                                                                                                                                     
=== iamjem action version                                                                                                                                                            
                                                                                                                                                                                     
  ID     ACTION ID                             ACTION NAME                           RUNTIME  STATUS  CREATED AT                                                                     
  draft  b448822b-cd98-46f9-badd-7b6ebd9b5381  b448822b-cd98-46f9-badd-7b6ebd9b5381  node12   built   2 minutes ago 

@vprasanth
Copy link
Contributor

Is the id flag more appropriate than name in this case?

@iamjem
Copy link
Contributor Author

iamjem commented Jan 27, 2021

Is the id flag more appropriate than name in this case?

Probably? We were actually thinking about making it so someone could provide the uuid OR name.

@iamjem iamjem force-pushed the A0CLI-55-actions-update branch from 91ee062 to 9187a32 Compare January 27, 2021 18:34
@iamjem iamjem merged commit ea6efa2 into main Jan 27, 2021
@iamjem iamjem deleted the A0CLI-55-actions-update branch January 27, 2021 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants