Skip to content

phorest/codepush-promote-action

Repository files navigation

CodePush Promote Action

This action promotes latest CodePush label from an ENV to another.

Please note you need to ncc build index.js in order to compile your changes.

Check example below for expected env variables.

Inputs

mandatory

A boolean indicating if the version is mandatory or not. Default "false".

rollout

A string indicating the percentage of the rollout. Default "100".

from

A string indicating the "from" CodePush env, i.e. "DEV"

to

A string indicating the "to" CodePush env, i.e. "PROD"

create_release

A boolean indicating if a release should be created, first draft will be used if available

Outputs

releaseTag

The tag of the release

releaseName

The name of the release

releaseUrl

The url of the release

Example usage

uses: actions/cp-promote-action@v1.0
with:
    mandatory: 'false'
    rollout: '100'
    from: 'STAG'
    to: 'PROD'
    iOSAppName: 'PhorestGo-iOS'
    androidAppName: 'PhorestGo-Android'
env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    APPCENTER_TOKEN: ${{ secrets.APPCENTER_TOKEN }}
    IOS_APP_NAME: 'ios_codepush_app_name'
    ANDROID_APP_NAME: 'android_codepush_app_name'

About

This GH Action promotes in MS CodePush with Options

Resources

Stars

Watchers

Forks

Packages

No packages published