Create upgrade_module.yml

This commit is contained in:
شركة خبير المحدودة 2025-09-04 14:53:59 +03:00 committed by GitHub
parent 2267c988bd
commit ba02275ad5
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"