Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-martacarlos committed Jul 19, 2024
1 parent 3f72946 commit 12917c0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 18 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/o11_change_extensibility.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
name: (O11) Update Extensibility

on:
workflow_dispatch:
workflow_call:
inputs:
tag:
description: 'The repo version tag'
required: true
default: '0.0.1'
type: string
forgeVersion:
description: 'The plugin version on the forge'
required: true
default: '0.0.1'
type: string
mabsMin:
description: 'Minimum MABS version'
required: true
default: '9.0.0'
type: string
enviroment:
description: 'O11 Enviorment'
required: true
default: enmobile11-dev.outsystemsenterprise.com
type: choice
options:
- enmobile11-dev.outsystemsenterprise.com
- enmobile11-tst.outsystemsenterprise.com
- enmobile11.outsystemsenterprise.com
type: string

jobs:
deploy:
update:
name: Change OML Extensibility
runs-on: ubuntu-latest
steps:
Expand All @@ -42,5 +33,5 @@ jobs:
run: npm install

- name: Update Extensibility Configurations JSON
run: npm run update:tag --plugin=BarcodeAutomation --name="Barcode Automation" --mabs=${{ github.event.inputs.mabsMin }} --environment=${{ github.event.inputs.enviroment }} --repository=${{ github.repository }} --forge=${{ github.event.inputs.forgeVersion }} --branch=${{ github.event.inputs.tag }} --authentication="${{ secrets.BASICAUTH }}"
run: npm run update:tag --plugin=BarcodeAutomation --name="InAppBrowser Plugin" --mabs=${{ github.event.inputs.mabsMin }} --environment=${{ github.event.inputs.enviroment }} --repository=${{ github.repository }} --forge=${{ github.event.inputs.forgeVersion }} --branch=${{ github.event.inputs.tag }} --authentication="${{ secrets.BASICAUTH }}"

2 changes: 1 addition & 1 deletion .github/workflows/o11_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ jobs:
run: npm install

- name: Deploying from DEV to TST
run: npm run deploy --plugin=BarcodeAutomation --from=Development --to=Testing --lifetime=${{ secrets.LIFETIME }} --authentication=${{ secrets.AUTOMATION_TOKEN }}
run: npm run deploy --plugin=BarcodeAutomation --from=Development --to=${{ github.event.inputs.to }} --lifetime=${{ secrets.LIFETIME }} --authentication=${{ secrets.AUTOMATION_TOKEN }}

37 changes: 36 additions & 1 deletion .github/workflows/o11_release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,44 @@
name: (O11) Release Plugin

on:
pull_request:
workflow_dispatch:
inputs:
tag:
description: 'The repo version tag'
required: true
default: '0.0.1'
forgeVersion:
description: 'The plugin version on the forge'
required: true
default: '0.0.1'
mabsMin:
description: 'Minimum MABS version'
required: true
default: '9.0.0'
enviroment:
description: 'O11 Enviorment'
required: true
default: enmobile11-dev.outsystemsenterprise.com
type: choice
options:
- enmobile11-dev.outsystemsenterprise.com
- enmobile11-tst.outsystemsenterprise.com
- enmobile11.outsystemsenterprise.com

jobs:
change-extesnsibility:
uses: ./.github/workflows/o11_change_extensibility.yml
with:
tag: ${{ github.event.inputs.tag }}
forgeVersion: ${{ github.event.inputs.forgeVersion }}
mabsMin: ${{ github.event.inputs.mabsMin }}
environment: ${{ github.event.inputs.enviroment }}


deploy:
name: Release plugin via LifeTime
runs-on: ubuntu-latest
needs: change-extesnsibility
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -18,6 +50,9 @@ jobs:

- name: Install dependencies
run: npm install

- name: Tag Plugin with Version
run: npm run update:version --plugin=BarcodeAutomation --lifetime=${{ secrets.LIFETIME }} --authentication=${{ secrets.AUTOMATION_TOKEN }}

- name: Deploying from DEV to TST
run: npm run deploy --plugin=BarcodeAutomation --from=Development --to=Testing --lifetime=${{ secrets.LIFETIME }} --authentication=${{ secrets.AUTOMATION_TOKEN }}
Expand Down

0 comments on commit 12917c0

Please sign in to comment.