Skip to the content.

GitHub database migration action

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

CI wakatime

🎲 :octocat: A GitHub Action to manage versioned database migrations across multiple database drivers.

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-database-migration-action@latest
        env:
          DATABASE_PWD: $ # Pass the password as an environment variable to keep it secret.
        with:
          OPERATION: migrate
          DRIVER: mysql
          HOST: 127.0.0.1
          USER: test
          DATABASE: test