github-mysql-migration-action

GitHub repo GitHub code size in bytes GitHub last commit GitHub license

GitHub MariaDB/MySQL migration action

🎲 :octocat: A GitHub action to manage MariaDB/MySQL versioned migrations.

Usage

Parameters

Environment variables

Outputs

None.

Example


name: "test"
on:
  pull_request:
  push:
    branches:
      - main

  jobs:
    test:
      runs-on: ubuntu-latest
      steps:
      
      - uses: actions/checkout@v4
  
      - name: Run the action
        uses: guibranco/github-mysql-migration-action@latest
        env:
          MYSQL_PWD: $ # Pass the password as an environment variable to keep it secret.
        with:
          OPERATION: migrate
          MYSQL_HOST: 127.0.0.1
          MYSQL_USER: test
          MYSQL_DATAABSE: test