Skip to content

remove branch secret key #27

remove branch secret key

remove branch secret key #27

name: 📱 Build Mobile Artefact
run-name: "📱 ${{ github.ref_name }} - ${{ github.run_id }}"
on:
push:
branches:
- develop
tags:
- release-*
permissions:
id-token: write
contents: write
jobs:
get_release_branch:
outputs:
branch: ${{ steps.get_release_branch.outputs.branch }}
if: github.event_name == 'push' && startsWith(github.ref_name, 'release-')
runs-on: ubuntu-latest
- name: 🔍 Get Release Branch

Check failure on line 21 in .github/workflows/build-mobile-app-artefact.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-mobile-app-artefact.yaml

Invalid workflow file

You have an error in your yaml syntax on line 21
id: get_release_branch
run: echo "branch=$(echo ${{ github.ref_name }} | cut -d '.' -f -3)" >> $GITHUB_OUTPUT
develop:
if: github.ref_name == 'develop'
uses: dvsa/des-workflow-actions/.github/workflows/build-mobile-app.yaml@main
with:
runs_on: mito-2
branch: ${{ github.ref_name }}
environment: develop
config-type: test
build-simulator: ${{ inputs.build-simulator }}
secrets:
AWS_ROLE: ${{ secrets.DES_AWS_ROLE }}
DVSA_AWS_REGION: ${{ secrets.DVSA_AWS_REGION }}
release:
needs: get_release_branch
if: startsWith(github.ref_name, 'release-')
uses: dvsa/des-workflow-actions/.github/workflows/build-mobile-app.yaml@main
with:
runs_on: mito-2
branch: ${{ needs.get_release_branch.outputs.branch }}
environment: release
config-type: dev
build-type: prod
build-ipa: true
secrets:
AWS_ROLE: ${{ secrets.DES_AWS_ROLE }}
DVSA_AWS_REGION: ${{ secrets.DVSA_AWS_REGION }}