Add workflow for upgrading modules in dev environment

This commit is contained in:
شركة خبير المحدودة 2026-01-06 15:12:02 +02:00 committed by GitHub
parent 723059d73c
commit 0b542d816b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 0 deletions

34
.github/workflows/upgrade_module.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Upgrade Module
on:
workflow_dispatch:
inputs:
database_name:
description: 'Database Name'
required: true
type: string
module_name:
description: 'Module Name'
required: true
type: string
environment:
description: 'Select Server'
required: true
type: choice
options:
- dev
default: dev
jobs:
upgrade_master:
name: Upgrade Dev server
runs-on: odex30-runner
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'dev'
steps:
- name: Upgrade Module
env:
DATABASE_NAME: ${{ github.event.inputs.database_name }}
MODULE_NAME: ${{ github.event.inputs.module_name }}
run: |
chmod +x /home/${{ secrets.CLIENT_USER }}/scripts/upgrade/upgrade-module.sh
/home/${{ secrets.CLIENT_USER }}/scripts/upgrade/upgrade-module.sh "$DATABASE_NAME" "$MODULE_NAME"