Schema update (#70) #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: EStore Inventory Pipeline | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- 'projects/estore/inventory/migrations/*' | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Atlas | |
uses: ariga/setup-atlas@v0 | |
with: | |
cloud-token: ${{ secrets.ATLAS_PUBLIC_TENANT_TOKEN }} | |
- name: Lint Migrations | |
uses: ariga/atlas-action/migrate/lint@v1 | |
with: | |
dir-name: 'estore-inventory' | |
dir: 'file://projects/estore/inventory/migrations' | |
env: 'local' | |
config: 'file://projects/estore/atlas.hcl' | |
- name: Push to Registry | |
if: github.ref == 'refs/heads/master' | |
uses: ariga/atlas-action/migrate/push@v1 | |
with: | |
dir-name: 'estore-inventory' | |
env: 'local' | |
dir: 'file://projects/estore/inventory/migrations' | |
config: 'file://projects/estore/atlas.hcl' |