Skip to content

:octocat: Github action to delete a CodePush track very quickly

License

Notifications You must be signed in to change notification settings

huextrat/delete-codepush

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delete CodePush

This action delete a CodePush deployment track using the AppCenter CLI.

You will need a Full Access API token from AppCenter.

Usage

- uses: huextrat/delete-codepush@v1.0.2
  with:
    # Required, as the AppCenter CLI requires authentication
    # Make it secure, using GitHub secrets for instance
    # Example: ${{ secrets.APPCENTER_API_TOKEN }}
    token: ''

    # Required, as the AppCenter CLI requires an app name
    # Format: <ownerName>/<appName>
    # Example: huextrat/MyApp
    app: ''

    # Deployment track you want to delete
    deploymentTrack: ''

Scenario

  • AppCenter Android app name is: huextrat/MyApp-Android
  • AppCenter iOS app name is: huextrat/MyApp-iOS

Example

Android

- uses: huextrat/delete-codepush@v1.0.2
  with:
    token: ${{ secrets.APP_CENTER_API_KEY }}
    app: "huextrat/MyApp-Android"
    deploymentTrack: "Staging"

iOS

- uses: huextrat/delete-codepush@v1.0.2
  with:
    token: ${{ secrets.APP_CENTER_API_KEY }}
    app: "huextrat/MyApp-iOS"
    deploymentTrack: "Staging"