Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2024.09.17 #7

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ Uses the default command `up` and does not check in the database schema.
...
steps:
- name: "Run migrations"
uses: dwin/dbmate-action@v1.15
uses: dwin/dbmate-action@v2024.09.17
with:
command: 'up'
dbmate_version: '2.21' # optional, defaults to latest
env:
DATABASE_URL: postgres://postgres:changeme@postgres:5432/postgres # or ${{ secrets.DATABASE_URL }}
DBMATE_MIGRATIONS_DIR: "./migrations"
Expand All @@ -45,7 +46,7 @@ steps:
...
steps:
- name: "Run migrations"
uses: dwin/dbmate-action@v1.15
uses: dwin/dbmate-action@v2024.09.17
with:
command: 'up'
env:
Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ branding:
description: 'Run Dbmate database migration tool'
inputs:
command:
description: 'Dbmate command to run'
description: 'Dbmate command to run (optional, defaults to "--help"). Example: up'
required: false
default: '--help'
dbmate_version:
description: 'Dbmate version to use (optional, defaults to latest). Example: 2.21'
required: false
default: 'latest'
runs:
using: 'docker'
image: 'docker://ghcr.io/amacneil/dbmate:1.15'
image: docker://ghcr.io/amacneil/dbmate:${{ inputs.dbmate_version }}
args:
- ${{ inputs.command }}
Loading