This repo defines a JavaScript GitHub Action that determines the version of a database migration project based on which migration scripts are present.
Run the command npm run build
to package the action for publishing. This will create a dist/index.js
file containing all necessary application code. This file is referenced by the GitHub action in order to execute the action.
scriptDirectory
: The directory containing database migration scripts.
version
: The database version, as determined by the scripts inscriptDirectory
.
- name: Get version
id: get_version
uses: arit-ucsb/[email protected]
with:
scriptDirectory: "./Sql_Scripts"