Skip to content

GitHub Action to auto-generate SQL statements from a django migration

License

Notifications You must be signed in to change notification settings

markstory/action-migrations

 
 

Repository files navigation

Code in Main

Install the dependencies

$ yarn

Build the typescript and package it for distribution

$ yarn build

Run the tests ✔️

$ yarn test
...

Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.

Then run ncc and push the results:

$ yarn build
$ git add dist
$ git commit -a -m "prod dependencies"
$ git push origin main

Your action is now published! 🚀

See the versioning documentation

Usage:

In your workflow file

  - name: Generate SQL for migration
    uses: getsentry/action-migrations@v1.0.7
    env:
      SENTRY_LOG_LEVEL: ERROR
      PGPASSWORD: postgres
    with:
      githubToken: ${{ secrets.GITHUB_TOKEN }}
      migration: "./path/to/migration"

About

GitHub Action to auto-generate SQL statements from a django migration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 91.9%
  • JavaScript 8.1%