Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
dwin committed Sep 17, 2024
1 parent 0423167 commit b8c940f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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 ## to use the latest version of dbmate or specify a version use @<version> such as dwin/dbmate-action@v2
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 Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ inputs:
description: 'Dbmate command to run'
required: false
default: '--help'
dbmate_version:
description: 'Dbmate version to use'
required: false
default: 'latest'
runs:
using: 'docker'
image: 'docker://ghcr.io/amacneil/dbmate:latest'
image: 'docker://ghcr.io/amacneil/dbmate:${{ inputs.dbmate_version }}'
args:
- ${{ inputs.command }}

0 comments on commit b8c940f

Please sign in to comment.