From 58e518059c9b15abb64b8efe171b9e221aee0962 Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Mon, 1 Jul 2024 19:45:50 +0530 Subject: [PATCH 1/6] test --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0eab1127..b4a86bd4 100644 --- a/README.md +++ b/README.md @@ -118,4 +118,7 @@ Django Rest Framework API for Fyle Netsuite Integration. OK Destroying test database for alias 'default'... - ``` \ No newline at end of file + + + + ``` From d5d43491d49ab3a0b9162ae69f543dadc7e492eb Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Mon, 1 Jul 2024 19:49:41 +0530 Subject: [PATCH 2/6] test --- .../{hulk_deployment.yml => fyle_hulk_deployment.yml} | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename .github/workflows/{hulk_deployment.yml => fyle_hulk_deployment.yml} (95%) diff --git a/.github/workflows/hulk_deployment.yml b/.github/workflows/fyle_hulk_deployment.yml similarity index 95% rename from .github/workflows/hulk_deployment.yml rename to .github/workflows/fyle_hulk_deployment.yml index 65717c93..56c4dfa6 100644 --- a/.github/workflows/hulk_deployment.yml +++ b/.github/workflows/fyle_hulk_deployment.yml @@ -9,8 +9,11 @@ on: types: - completed + pull_request: + types: [assigned, opened, synchronize, reopened] + jobs: - hulk_deploy: + fyle_hulk_deploy: runs-on: ubuntu-latest environment: Staging steps: @@ -20,19 +23,23 @@ jobs: - name: Initialize and update submodules run: | + date git submodule sync --recursive git submodule update --init --recursive git submodule foreach git fetch --all + date - name: Run CI id: run-ci run: | echo "Running ci" + date - name: Get Release branch name if workflow_run if: github.event_name == 'workflow_run' run: | echo "release_branch=netsuite_api_release_$(date +%Y_%m_%d)" >> $GITHUB_ENV + date - name: Checkout to Release branch if workflow_run uses: actions/checkout@v4 From a6ead7f92481dc1ad6247a74cb0e2a94ab474f9d Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Mon, 1 Jul 2024 20:06:18 +0530 Subject: [PATCH 3/6] sleep reduce --- .github/workflows/fyle_hulk_deployment.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fyle_hulk_deployment.yml b/.github/workflows/fyle_hulk_deployment.yml index 56c4dfa6..2ef80453 100644 --- a/.github/workflows/fyle_hulk_deployment.yml +++ b/.github/workflows/fyle_hulk_deployment.yml @@ -23,23 +23,21 @@ jobs: - name: Initialize and update submodules run: | - date git submodule sync --recursive git submodule update --init --recursive git submodule foreach git fetch --all - date + sleep 2 - name: Run CI id: run-ci run: | echo "Running ci" - date + sleep 2 - name: Get Release branch name if workflow_run if: github.event_name == 'workflow_run' run: | echo "release_branch=netsuite_api_release_$(date +%Y_%m_%d)" >> $GITHUB_ENV - date - name: Checkout to Release branch if workflow_run uses: actions/checkout@v4 From bd8aabc97ad47413f8a30a4dd83dba71b9674187 Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Mon, 1 Jul 2024 20:20:17 +0530 Subject: [PATCH 4/6] ahjsdbjasbd --- .github/workflows/fyle_hulk_deployment.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fyle_hulk_deployment.yml b/.github/workflows/fyle_hulk_deployment.yml index 2ef80453..5b85498e 100644 --- a/.github/workflows/fyle_hulk_deployment.yml +++ b/.github/workflows/fyle_hulk_deployment.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v2 with: - submodules: true + submodules: true - name: Initialize and update submodules run: | @@ -31,7 +31,7 @@ jobs: - name: Run CI id: run-ci run: | - echo "Running ci" + echo "Running CI" sleep 2 - name: Get Release branch name if workflow_run @@ -40,10 +40,10 @@ jobs: echo "release_branch=netsuite_api_release_$(date +%Y_%m_%d)" >> $GITHUB_ENV - name: Checkout to Release branch if workflow_run - uses: actions/checkout@v4 + uses: actions/checkout@v2 if: github.event_name == 'workflow_run' with: - ref: ${{env.release_branch}} + ref: ${{ env.release_branch }} - name: Verify current branch run: git branch --show-current @@ -91,4 +91,4 @@ jobs: git commit -m "Deployed fyle_netsuite-api:$NEW_TAG to hulk" git remote set-url origin https://x-access-token:${{ secrets.DEPLOY_GIT_ACCESS_TOKEN }}@github.com/${{ vars.STAGING_DEPLOY_REPO }} git pull origin master - git push origin master \ No newline at end of file + git push origin master From 8c9580a92199c542a4c87484f875736db2a15343 Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Mon, 1 Jul 2024 20:24:53 +0530 Subject: [PATCH 5/6] ahjsdbjasbd --- .github/workflows/fyle_hulk_deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fyle_hulk_deployment.yml b/.github/workflows/fyle_hulk_deployment.yml index 5b85498e..63ebe556 100644 --- a/.github/workflows/fyle_hulk_deployment.yml +++ b/.github/workflows/fyle_hulk_deployment.yml @@ -26,13 +26,13 @@ jobs: git submodule sync --recursive git submodule update --init --recursive git submodule foreach git fetch --all - sleep 2 + sleep 5 - name: Run CI id: run-ci run: | echo "Running CI" - sleep 2 + sleep 5 - name: Get Release branch name if workflow_run if: github.event_name == 'workflow_run' From 4952a292c3cb4ed91377746a277aa1b19ef71f2f Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Mon, 1 Jul 2024 20:27:52 +0530 Subject: [PATCH 6/6] rm --- .github/workflows/fyle_hulk_deployment.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/fyle_hulk_deployment.yml b/.github/workflows/fyle_hulk_deployment.yml index 63ebe556..32448b3c 100644 --- a/.github/workflows/fyle_hulk_deployment.yml +++ b/.github/workflows/fyle_hulk_deployment.yml @@ -9,9 +9,6 @@ on: types: - completed - pull_request: - types: [assigned, opened, synchronize, reopened] - jobs: fyle_hulk_deploy: runs-on: ubuntu-latest