Skip to content

Commit

Permalink
feat: created workflows to create new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Ilham committed Feb 3, 2023
1 parent 1305b11 commit f518809
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/create_migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
type: string
description: "directory where you store the migration files"
required: true
default: migrations


jobs:
Expand All @@ -39,7 +40,7 @@ jobs:
run: git checkout -b ${{ github.event.inputs.name }}

- name: Create migration file
run: migrate create -ext sql -dir migrations -seq ${{ github.event.inputs.name }}
run: migrate create -ext sql -dir ${{ github.event.inputs.directory }} -seq ${{ github.event.inputs.name }}

- name: Push branch
run: git push origin ${{ github.event.inputs.name }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
push:
branches:
- main
paths-ignore:
- '.github/workflows/**'
- 'migrations/**'

jobs:
release:
Expand Down

0 comments on commit f518809

Please sign in to comment.