https://github.com/zentered/graphile-migrate-commit-current-action
Commit Graphile Migrations in a GitHub Action
https://github.com/zentered/graphile-migrate-commit-current-action
Last synced: about 1 year ago
JSON representation
Commit Graphile Migrations in a GitHub Action
- Host: GitHub
- URL: https://github.com/zentered/graphile-migrate-commit-current-action
- Owner: zentered
- License: mit
- Created: 2020-11-09T13:46:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-09T20:30:49.000Z (over 5 years ago)
- Last Synced: 2025-04-02T23:05:58.761Z (about 1 year ago)
- Language: JavaScript
- Size: 1.21 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Commit current Graphile Migrate migration
This action commits the current [Graphile Migrate](https://github.com/graphile/migrate) migration.
Use this action in conjunction with [Add & Commit](https://github.com/marketplace/actions/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
```yaml
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"
```