From 51b17fad719e774686214e545390e17b6a81613b Mon Sep 17 00:00:00 2001 From: im-deviprakash Date: Fri, 16 Feb 2024 14:43:53 +0530 Subject: [PATCH 1/2] Modified docs --- .github/workflows/find_replace.yml | 2 +- docs/DealsAPI.md | 4 ++-- docs/FreightEstimateAPI.md | 2 +- docs/InvoicesAPI.md | 4 ++-- docs/InvoicesV6API.md | 2 +- docs/OrderStatusAPI.md | 2 +- docs/OrdersAPI.md | 10 +++++----- docs/OrdersV6API.md | 2 +- docs/ProductCatalogAPI.md | 6 +++--- docs/QuoteToOrderAPI.md | 2 +- docs/QuotesAPI.md | 6 +++--- docs/RenewalsAPI.md | 4 ++-- docs/ReturnsAPI.md | 6 +++--- docs/StockUpdateAPI.md | 2 +- 14 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/find_replace.yml b/.github/workflows/find_replace.yml index bcd23d8..4161072 100644 --- a/.github/workflows/find_replace.yml +++ b/.github/workflows/find_replace.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 - name: Find and Replace run: | - find docs/ -type f -name "*.md" -exec sed -i 's/xi_sdk_resellers "https:\/\/github.com\/dprakash2101\/GoSDK"/xi_sdk_resellers "https:\/\/github.com\/dprakash2101\/GoSDK" ingrammicro-xvantage\/xi-sdk-resellers-go/g' {} + + find docs/ -type f -name "*.md" -exec sed -i 's/openapiclient "github.com\/GIT_USER_ID\/GIT_REPO_ID"/xi_sdk_resellers "https:\/\/github.com\/ingrammicro-xvantage\/xi-sdk-resellers-go"/g' {} + - name: Commit changes run: | git config --global user.email "${{ secrets.ADMIN_EMAIL }}" diff --git a/docs/DealsAPI.md b/docs/DealsAPI.md index f764f93..0e58100 100644 --- a/docs/DealsAPI.md +++ b/docs/DealsAPI.md @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -106,7 +106,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/FreightEstimateAPI.md b/docs/FreightEstimateAPI.md index 813aee7..859eaed 100644 --- a/docs/FreightEstimateAPI.md +++ b/docs/FreightEstimateAPI.md @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/InvoicesAPI.md b/docs/InvoicesAPI.md index 49bdfa1..b327a16 100644 --- a/docs/InvoicesAPI.md +++ b/docs/InvoicesAPI.md @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -108,7 +108,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/InvoicesV6API.md b/docs/InvoicesV6API.md index f03a1e7..d4c5113 100644 --- a/docs/InvoicesV6API.md +++ b/docs/InvoicesV6API.md @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/OrderStatusAPI.md b/docs/OrderStatusAPI.md index 188b957..6d1e6a3 100644 --- a/docs/OrderStatusAPI.md +++ b/docs/OrderStatusAPI.md @@ -23,7 +23,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/OrdersAPI.md b/docs/OrdersAPI.md index a630c7a..422ad4e 100644 --- a/docs/OrdersAPI.md +++ b/docs/OrdersAPI.md @@ -29,7 +29,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -108,7 +108,7 @@ import ( "fmt" "os" "time" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -196,7 +196,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -304,7 +304,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -378,7 +378,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/OrdersV6API.md b/docs/OrdersV6API.md index 78ef6bd..ab390e0 100644 --- a/docs/OrdersV6API.md +++ b/docs/OrdersV6API.md @@ -26,7 +26,7 @@ import ( "fmt" "os" "time" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/ProductCatalogAPI.md b/docs/ProductCatalogAPI.md index 68b895e..3a9a176 100644 --- a/docs/ProductCatalogAPI.md +++ b/docs/ProductCatalogAPI.md @@ -27,7 +27,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -105,7 +105,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -199,7 +199,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/QuoteToOrderAPI.md b/docs/QuoteToOrderAPI.md index 87b1814..842decc 100644 --- a/docs/QuoteToOrderAPI.md +++ b/docs/QuoteToOrderAPI.md @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/QuotesAPI.md b/docs/QuotesAPI.md index 3125236..506b8e3 100644 --- a/docs/QuotesAPI.md +++ b/docs/QuotesAPI.md @@ -27,7 +27,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -125,7 +125,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -199,7 +199,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/RenewalsAPI.md b/docs/RenewalsAPI.md index 945e635..04f09c3 100644 --- a/docs/RenewalsAPI.md +++ b/docs/RenewalsAPI.md @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -104,7 +104,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/ReturnsAPI.md b/docs/ReturnsAPI.md index 0f466c2..6b74ffe 100644 --- a/docs/ReturnsAPI.md +++ b/docs/ReturnsAPI.md @@ -27,7 +27,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -105,7 +105,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { @@ -207,7 +207,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { diff --git a/docs/StockUpdateAPI.md b/docs/StockUpdateAPI.md index 8f87794..b4789e8 100644 --- a/docs/StockUpdateAPI.md +++ b/docs/StockUpdateAPI.md @@ -23,7 +23,7 @@ import ( "context" "fmt" "os" - xi_sdk_resellers "https://github.com/dprakash2101/GoSDK" ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go + xi_sdk_resellers "github.com/ingrammicro-xvantage/xi-sdk-resellers-go ingrammicro-xvantage/xi-sdk-resellers-go" ) func main() { From fd2bc1407c3e3d6f1b8f7f67f452cfecb84836d1 Mon Sep 17 00:00:00 2001 From: im-deviprakash Date: Fri, 16 Feb 2024 14:46:05 +0530 Subject: [PATCH 2/2] Updated workflow --- .github/workflows/find_replace.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/find_replace.yml b/.github/workflows/find_replace.yml index 4161072..af5b80e 100644 --- a/.github/workflows/find_replace.yml +++ b/.github/workflows/find_replace.yml @@ -14,10 +14,15 @@ jobs: - name: Find and Replace run: | find docs/ -type f -name "*.md" -exec sed -i 's/openapiclient "github.com\/GIT_USER_ID\/GIT_REPO_ID"/xi_sdk_resellers "https:\/\/github.com\/ingrammicro-xvantage\/xi-sdk-resellers-go"/g' {} + - - name: Commit changes - run: | + - name: Commit changes + run: | git config --global user.email "${{ secrets.ADMIN_EMAIL }}" git config --global user.name "${{ secrets.ORG_NAME }}" - git add . - git commit -m "Replace openapiclient with Ingrammicroresellerapi" - git push https://${{secrets.WORKFLOW_TOKEN}}@github.com/ingrammicro-xvantage/xi-sdk-resellers-go.git main \ No newline at end of file + if git diff --quiet; then + echo "No changes to commit." + else + git add . + git commit -m "Replace openapiclient with Ingrammicroresellerapi" + git push https://${{secrets.WORKFLOW_TOKEN}}@github.com/ingrammicro-xvantage/xi-sdk-resellers-go.git main + fi + \ No newline at end of file