Skip to content

Commit

Permalink
readme: deprecation notice (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemtam authored Oct 15, 2023
1 parent 4f7e591 commit 2ca31f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# atlas-sync-action

## Deprecation Notice

This action has been deprecated in favor of the `ariga/atlas-action/migrate/push` action.

Please see [the docs](https://github.com/ariga/atlas-action#arigaatlas-actionmigratepush) for more
details.

## About

A GitHub Action for syncing a migration directory to [Atlas Cloud](https://atlasgo.cloud).

## Usage
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'atlas-sync-action'
description: 'Sync your migration directory to Atlas Cloud'
description: 'Deprecated. Sync your migration directory to Atlas Cloud'
branding:
icon: database
author: 'Ariga'
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const cloudDomainPublic = "https://gh-api.atlasgo.cloud"

func main() {
act := githubactions.New()
act.Warningf("This action is deprecated. Please use ariga/atlas-action/migrate/push instead. " +
"For details see: https://github.com/ariga/atlas-action#arigaatlas-actionmigratepush")
if ok, err := strconv.ParseBool(act.GetInput("cloud-public")); err == nil && ok {
RunPublic(act)
} else {
Expand Down

0 comments on commit 2ca31f5

Please sign in to comment.