From 3b127e2a8371e4352cbe942f00a4a1bb679cd843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leif=20Erik=20Bj=C3=B8rkli?= Date: Tue, 5 Sep 2023 08:36:45 +0200 Subject: [PATCH] =?UTF-8?q?Bytter=20til=20=C3=A5=20bruke=20branchname=20i?= =?UTF-8?q?=20github=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-custom-codepush.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-custom-codepush.yml b/.github/workflows/build-custom-codepush.yml index 9d3f83e..8ea1f41 100644 --- a/.github/workflows/build-custom-codepush.yml +++ b/.github/workflows/build-custom-codepush.yml @@ -1,12 +1,6 @@ name: Lag CodePush 🚀 -on: - workflow_dispatch: - inputs: - targetVersion: - description: 'Target version, feks: 1.0.0-' - required: true - default: '1.0.0-leiferik' +on: workflow_dispatch jobs: build_codepush: runs-on: macos-13 @@ -16,7 +10,7 @@ jobs: fetch-depth: 1 - run: | - echo "Target version: ${{ github.event.inputs.targetVersion }}" + echo "Target version: ${{ github.head_ref }}" - name: NPM install CI run: npm ci @@ -27,5 +21,5 @@ jobs: - name: Bygg CodePush run: | npx appcenter login --token ${{ secrets.APPCENTER_API_TOKEN }} - npx appcenter codepush release-react -a leif.erik.bjorkli-BEKK.no/RNSkolenApp -d Staging -t ${{ github.event.inputs.targetVersion }} --description "${{ github.event.inputs.targetVersion }}-${{ steps.timestamp.outputs.timestamp }}" - npx appcenter codepush release-react -a leif.erik.bjorkli-BEKK.no/RNSkolenApp-Android -d Staging -t ${{ github.event.inputs.targetVersion }} --description "${{ github.event.inputs.targetVersion }}-${{ steps.timestamp.outputs.timestamp }}" + npx appcenter codepush release-react -a leif.erik.bjorkli-BEKK.no/RNSkolenApp -d Staging -t ${{ github.head_ref }} --description "${{ github.head_ref }}-${{ steps.timestamp.outputs.timestamp }}" + npx appcenter codepush release-react -a leif.erik.bjorkli-BEKK.no/RNSkolenApp-Android -d Staging -t ${{ github.head_ref }} --description "${{ github.head_ref }}-${{ steps.timestamp.outputs.timestamp }}"