Skip to content

Commit

Permalink
Bytter til å bruke branchname i github action
Browse files Browse the repository at this point in the history
  • Loading branch information
leiferikbjorkli committed Sep 5, 2023
1 parent 2152999 commit 3b127e2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build-custom-codepush.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Lag CodePush 🚀

on:
workflow_dispatch:
inputs:
targetVersion:
description: 'Target version, feks: 1.0.0-<navn>'
required: true
default: '1.0.0-leiferik'
on: workflow_dispatch
jobs:
build_codepush:
runs-on: macos-13
Expand All @@ -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
Expand All @@ -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 }}"

0 comments on commit 3b127e2

Please sign in to comment.