diff --git a/.github/workflows/o11_change_extensibility.yml b/.github/workflows/o11_change_extensibility.yml index 8801fe3..7f78884 100644 --- a/.github/workflows/o11_change_extensibility.yml +++ b/.github/workflows/o11_change_extensibility.yml @@ -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: @@ -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 }}" diff --git a/.github/workflows/o11_deploy.yml b/.github/workflows/o11_deploy.yml index 715d249..d59c76c 100644 --- a/.github/workflows/o11_deploy.yml +++ b/.github/workflows/o11_deploy.yml @@ -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 }} diff --git a/.github/workflows/o11_release.yml b/.github/workflows/o11_release.yml index 3cccef6..f6e522c 100644 --- a/.github/workflows/o11_release.yml +++ b/.github/workflows/o11_release.yml @@ -2,11 +2,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 @@ -18,6 +51,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 }}