Skip to content

GitHub Action to analyze Rails migrations files content to detect presence method that results to an `ALTER TABLE`.

Notifications You must be signed in to change notification settings

petalmd/detect-alter-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detect Alter Table

GitHub Action to analyze Rails migrations files content to detect presence method that results to an ALTER TABLE.

Parameters

Name Description Required Default
gh-token A Github Personal Acsess Token true N/A
error-message A custom error message when the action detect an ALTER TABLE method false ALTER TABLE method found.

Example of workflow

name: Check migrations
on:
  pull_request:
    types: [synchronize]
    branches:
        - master
jobs:
  detect_alter_table:
    runs-on: ubuntu-latest
    name: Detect presence of alter table
    steps:
      - name: Detect presence of alter table
        uses: petalmd/detect-alter-table@main
        with:
          gh-token: ${{ secrets.GH_TOKEN }}
          error-message: Migration should target the migration branch.

About

GitHub Action to analyze Rails migrations files content to detect presence method that results to an `ALTER TABLE`.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published