Git Product home page Git Product logo

codepush-deployment-getting-action's Introduction

CodePush deployment getting action

This action get latest code push deployment informations

The reason why make this action instead of using directly CLI is that deployment result(JSON text) by Code Push CLI is array.

It`s sticky and cumbersome to filter specific element from JSON array using only git action expressions in workflow.

Support informations is

  • Deployment Key

you can begin using this key to configure your mobile clients via their respective SDKs.

  • Version label - v123
  • Deployment name - staging or production
  • All information JSON string

CodePush CLI

https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#app-management

Inputs

appcenter-token

Required The Access Token of appcetner

deployment-name

app-name

Required <ownername>/<appname> ex) company/test-app

Outputs

key

Deployment Key

ex) _wHuFKAZw6HmGQ9mZ_RAjy7fdtymH1wbmKAEN

name

Deployment Name

ex) staging or production etc.

version

Version Label

ex) v123

mandatory

This value is boolean whether this deployment is mandatory.

true or false

json

This all deployment information JSON string

Example usage

This example is simple workflow that get deployment version and tag using codepush version label.

Tag will be company/test-app/v123.

- name: Generate Full App Name by Platform
    run: |
        echo "FULL_APP_NAME=company/test-app" >> $GITHUB_ENV

- name: Get CodePush Deployment
    id: deployment-job
    uses: peanut-lover/[email protected]
    with:
        appcenter-token: ${{ secrets.APPCENTER_ACCESS_TOKEN }}
        deployment-name: ${{ env.STAGE }}
        app-name: ${{ env.FULL_APP_NAME }}

- name: Create CodePush Version Tag
    run: echo "NEW_TAG=${{ env.FULL_APP_NAME }}/${{ steps.deployment-job.outputs.name }}/${{ steps.deployment-job.outputs.version }}" >> $GITHUB_ENV

- name: Append CodePush Version Tag
    uses: actions/github-script@v6
    with:
        script: |
            github.rest.git.createRef({
            owner: context.repo.owner,
            repo: context.repo.repo,
            ref: 'refs/tags/${{ env.NEW_TAG }}',
            sha: context.sha
            })

codepush-deployment-getting-action's People

Contributors

peanudge avatar

Forkers

ecogit-stage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.