Skip to content

projects/inventory: track regional inventory #17

projects/inventory: track regional inventory

projects/inventory: track regional inventory #17

Workflow file for this run

name: EStore Inventory Pipeline
on:
push:
branches:
- master
pull_request:
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'