This action runs mysqldef on pull requests to improve code review experience.
Required. ${{ github.token }}
is used by default.
Required. ${{ github.repository }}
is used by default.
Optional. --host flag of mysqldef. (default: 127.0.0.1)
Optional. --port flag of mysqldef. (default: 3306)
Required. --user flag of mysqldef.
Required. --password flag of mysqldef.
Required. database name of mysqldef.
Required. schema path of mysqldef. (default: schema.sql)
name: mysqldef
on: [pull_request]
jobs:
mysqldef:
name: mysqldef
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: githubaction
MYSQL_USER: githubaction
MYSQL_PASSWORD: githubaction
steps:
- uses: actions/checkout@v2
- name: Run MySQL
uses: locona/action-mysqldef@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_repository: ${{ github.repository }}
mysql_user: githubaction
mysql_password: githubaction
mysql_database: githubaction
schema_path: schema/schema.sql