From 2ca31f55e863b6736956424c5710862653813401 Mon Sep 17 00:00:00 2001 From: Rotem Tamir Date: Sun, 15 Oct 2023 16:08:10 +0300 Subject: [PATCH] readme: deprecation notice (#28) --- README.md | 9 +++++++++ action.yml | 2 +- main.go | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 479d963..bd0d637 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 10af99c..e90c07b 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/main.go b/main.go index e5ea3c5..6bcc880 100644 --- a/main.go +++ b/main.go @@ -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 {