Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen: update then template to match new action #319

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Conversation

noamcattan
Copy link
Member

@noamcattan noamcattan commented Oct 3, 2023

example yaml file:

name: Atlas
on:
  push:
    branches:
      - master
    paths:
      - .github/workflows/ci-atlas.yaml
      - 'migrations/*'
  pull_request:
    paths:
      - 'migrations/*'
# Permissions to write comments on the pull request.
permissions:
  contents: read
  pull-requests: write
jobs:
  atlas:
    services:
      # Spin up a mysql:8 container to be used as the dev-database for analysis.
      mysql:
        image: mysql:8
        env:
          MYSQL_DATABASE: dev
          MYSQL_ROOT_PASSWORD: pass
        ports:
          - 3306:3306
        options: >-
          --health-cmd "mysqladmin ping -ppass"
          --health-interval 10s
          --health-start-period 10s
          --health-timeout 5s
          --health-retries 10
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: ariga/setup-atlas@v0
        with:
          cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }}
      - uses: ariga/atlas-action/migrate/lint@master
        with:
          dir: 'file://migrations'
          dir-name: 'name'
          dev-url: 'mysql://root:pass@localhost:3306/dev'
      - uses: ariga/atlas-action/migrate/push@master
        if: github.ref == 'refs/heads/master'
        with:
            dir: 'file://migrations'
            dir-name: 'name'
            dev-url: 'mysql://root:pass@localhost:3306/dev'
            cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }}

@noamcattan noamcattan marked this pull request as ready for review October 3, 2023 08:10
@noamcattan noamcattan changed the title updated template gen: update then template to match new action Oct 3, 2023
gen/atlas.tmpl Outdated Show resolved Hide resolved
gen/atlas.tmpl Outdated Show resolved Hide resolved
@noamcattan noamcattan force-pushed the new-action branch 4 times, most recently from 7677ebb to 6faa682 Compare October 3, 2023 09:04
gen/atlas.tmpl Show resolved Hide resolved
dorav
dorav previously approved these changes Oct 3, 2023
@noamcattan noamcattan merged commit 1516dca into master Oct 3, 2023
3 checks passed
@dorav dorav deleted the new-action branch October 3, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants