Skip to content

Commit

Permalink
Fix workflow errors (#941)
Browse files Browse the repository at this point in the history
* feat(MOSIP-29236): add reusable workflows

* feat(MOSIP-29236): add ios automation job

* feat(INJI-000) Add reusable workflows

Signed-off-by: adityankannan-tw <[email protected]>

* feat(MOSIP-25631): Add reusable workflows

Signed-off-by: adityankannan-tw <[email protected]>

* feat(MOSIP-25631): fix push trigger errors

Signed-off-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
  • Loading branch information
adityankannan-tw authored Oct 18, 2023
1 parent 662b07a commit cc5ec43
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/internal-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
beta-release:
description: 'Beta release?'
required: true
default: 'No'
default: "false"
type: choice
options:
- Yes
- No
- false
- true
buildname:
description: 'Build App For'
required: true
Expand Down Expand Up @@ -62,8 +62,9 @@ on:

jobs:
build-android:
uses: mosip/kattu/.github/workflows/android-publish.yml@master
uses: tw-mosip/kattu/.github/workflows/android-publish.yml@add-inji-workflows
with:
BETA_RELEASE: ${{ inputs.beta-release }}
NODE_VERSION: '16.x'
RELEASE_KEYSTORE_ALIAS: androidreleasekey
MIMOTO_HOST: ${{ inputs.mimotoBackendServiceUrl }}
Expand All @@ -80,8 +81,8 @@ jobs:
SLACK_URL: '${{ secrets.SLACK_WEBHOOK }}'

build-android-beta:
if: ${{ inputs.beta-release == 'Yes' }}
uses: mosip/kattu/.github/workflows/android-publish.yml@master
if: ${{ inputs.beta-release == 'true' }}
uses: tw-mosip/kattu/.github/workflows/android-publish.yml@add-inji-workflows
with:
BETA_RELEASE: ${{ inputs.beta-release }}
NODE_VERSION: '16.x'
Expand All @@ -100,7 +101,7 @@ jobs:
SLACK_URL: '${{ secrets.SLACK_WEBHOOK }}'

build-ios:
uses: mosip/kattu/.github/workflows/ios-publish.yml@master
uses: tw-mosip/kattu/.github/workflows/ios-publish.yml@add-inji-workflows
with:
NODE_VERSION: '18.x'
MIMOTO_HOST: ${{ inputs.mimotoBackendServiceUrl }}
Expand All @@ -127,9 +128,9 @@ jobs:
SLACK_URL: '${{ secrets.SLACK_WEBHOOK }}'

sonar-check:
uses: mosip/kattu/.github/workflows/sonar.yml@master
uses: tw-mosip/kattu/.github/workflows/sonar.yml@add-inji-workflows
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
SONAR_ORGANIZATION: ${{ secrets.ORG_KEY }}

SLACK_URL: '${{ secrets.SLACK_WEBHOOK }}'
22 changes: 13 additions & 9 deletions .github/workflows/push-triggers.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
name: Push-Triggers

.anchor-branches-tags: &branches-tags
.anchor-branches: &branches
branches:
- main
- develop
- qa-develop
- "release-**"
tags:
- "*"

on:
push:
<<: *branches-tags
<<: *branches
release:
types: [published]
pull_request:
types: [opened, synchronize]
<<: *branches-tags
types: [opened, reopened, synchronize]
paths:
- 'charts/**'
<<: *branches

jobs:
build-android:
uses: mosip/kattu/.github/workflows/android-build.yml@master
uses: tw-mosip/kattu/.github/workflows/android-build.yml@add-inji-workflows
with:
NODE_VERSION: "16.x"
secrets:
DEBUG_KEYSTORE_ALIAS: androiddebugkey
DEBUG_KEYSTORE_PASSWORD: "dummypassword"

build-ios:
uses: mosip/kattu/.github/workflows/ios-build.yml@master
uses: tw-mosip/kattu/.github/workflows/ios-build.yml@add-inji-workflows
with:
NODE_VERSION: "16.x"

sonar-check:
if: ${{ github.event_name == 'push' }}
uses: mosip/kattu/.github/workflows/sonar.yml@master
uses: tw-mosip/kattu/.github/workflows/sonar.yml@add-inji-workflows
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io
SONAR_ORGANIZATION: ${{ secrets.ORG_KEY }}
SLACK_URL: '${{ secrets.SLACK_WEBHOOK }}'
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

jobs:
tag-branch:
uses: mosip/kattu/.github/workflows/tag.yml@master
uses: tw-mosip/kattu/.github/workflows/tag.yml@add-inji-workflows
with:
TAG: ${{ inputs.TAG }}
BODY: ${{ inputs.BODY }}
Expand Down

0 comments on commit cc5ec43

Please sign in to comment.