Skip to content

About

Commit Graphile Migrations in a GitHub Action

Resources

Stars

0 stars

Watchers

2 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Commit current Graphile Migrate migration

This action commits the current Graphile Migrate migration.

Use this action in conjunction with Add & Commit to commit the committed migration to the repository.

Limitations

  • migrations must be present under /migrations/
  • only supports "file mode" for current migration (current migration must be present in a single file /migrations/current.sql)

Inputs

none

Outputs

none

Example usage

name: Commit current migration

on:
  [ push ]

jobs:
  commit-current-migration:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout repo
      uses: actions/checkout@v2

    - name: Commit current migration
      uses: zentered/graphile-migrate-commit-current-action@v1.0.1

    - uses: EndBug/add-and-commit@v5
      with:
        add: migrations/current.sql migrations/committed/*.sql
        message: "chore: commit migration changes in repo"

About

Commit Graphile Migrations in a GitHub Action

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages