From 728266c72116e4795dddacbd875340149a4fa8fc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 18 Jun 2023 21:52:37 +0000 Subject: [PATCH 01/22] insight upload --- cool/insight.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 cool/insight.json diff --git a/cool/insight.json b/cool/insight.json new file mode 100644 index 0000000..b6fc4c6 --- /dev/null +++ b/cool/insight.json @@ -0,0 +1 @@ +hello \ No newline at end of file From 71a16a7fded0824ed6ccdc831bc7856fbe4aed10 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 14:26:45 -0400 Subject: [PATCH 02/22] Update action.yml --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index cda2d6a..9a425c0 100644 --- a/action.yml +++ b/action.yml @@ -22,9 +22,11 @@ inputs: runs: using: "composite" steps: + - run: pwd + shell: bash - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt shell: bash - run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }} shell: bash env: - GITHUB_TOKEN: ${{ inputs.repo-token }} \ No newline at end of file + GITHUB_TOKEN: ${{ inputs.repo-token }} From e470a56a9ea3ea39799d4a08eab3e58e52e3962b Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 14:28:25 -0400 Subject: [PATCH 03/22] Update action.ymlasdf --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 9a425c0..db7cd5a 100644 --- a/action.yml +++ b/action.yml @@ -24,6 +24,7 @@ runs: steps: - run: pwd shell: bash + - run: echo ${{ github.workspace }} - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt shell: bash - run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }} From 4b65e5fd28b36045b9dde3599255ee3f5846d79d Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 14:31:03 -0400 Subject: [PATCH 04/22] Update action.yml --- action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index db7cd5a..cb2413a 100644 --- a/action.yml +++ b/action.yml @@ -22,9 +22,8 @@ inputs: runs: using: "composite" steps: - - run: pwd + - run: pwd && echo ${{github.workspace}} shell: bash - - run: echo ${{ github.workspace }} - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt shell: bash - run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }} From 1adbabb3607c93fe35ca49382653dc88295db90f Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 14:37:48 -0400 Subject: [PATCH 05/22] Update action.yml --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index cb2413a..c0d1917 100644 --- a/action.yml +++ b/action.yml @@ -22,6 +22,8 @@ inputs: runs: using: "composite" steps: + - name: Checkout repository + uses: actions/checkout@v2 - run: pwd && echo ${{github.workspace}} shell: bash - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt From c00317aa4c0ed4b3186d78fc5ad057fa3e7f3ba6 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 14:46:08 -0400 Subject: [PATCH 06/22] Update action.yml --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index c0d1917..88616e5 100644 --- a/action.yml +++ b/action.yml @@ -24,6 +24,9 @@ runs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + repository: Yanqiao4396/BranchWrite + ref: insight - run: pwd && echo ${{github.workspace}} shell: bash - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt From 851bffabe10c89aeb51cb57b6f116c116352592b Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 14:49:47 -0400 Subject: [PATCH 07/22] Update action.yml --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 88616e5..7050c40 100644 --- a/action.yml +++ b/action.yml @@ -27,6 +27,9 @@ runs: with: repository: Yanqiao4396/BranchWrite ref: insight + - name: Navigate to branch write repository + run: cd BranchWrite + - run: pwd && echo ${{github.workspace}} shell: bash - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt From a552cd05fcc00fcd40e260b6e1ef2ae4017f4ae5 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 14:50:42 -0400 Subject: [PATCH 08/22] Update action.ymla --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 7050c40..41da757 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,7 @@ runs: ref: insight - name: Navigate to branch write repository run: cd BranchWrite + shell: bash - run: pwd && echo ${{github.workspace}} shell: bash From f1465bfb0822be4368ec1971b648f2ca22bdbf0a Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 15:02:12 -0400 Subject: [PATCH 09/22] Update action.yml --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 41da757..007f14d 100644 --- a/action.yml +++ b/action.yml @@ -28,12 +28,12 @@ runs: repository: Yanqiao4396/BranchWrite ref: insight - name: Navigate to branch write repository - run: cd BranchWrite + run: cd /Yanqiao4396/BranchWrite shell: bash - run: pwd && echo ${{github.workspace}} shell: bash - - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt + - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir /Yanqiao4396/BranchWrite/requirements.txt shell: bash - run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }} shell: bash From 346197bf5f8074a478db185f76b6228b9e5b3d85 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:00:56 -0400 Subject: [PATCH 10/22] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 007f14d..4f9e9c3 100644 --- a/action.yml +++ b/action.yml @@ -33,7 +33,7 @@ runs: - run: pwd && echo ${{github.workspace}} shell: bash - - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir /Yanqiao4396/BranchWrite/requirements.txt + - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir PyGithub shell: bash - run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }} shell: bash From 965798363e227b5f4e2ed84bfef0ab4cdb24017a Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:03:58 -0400 Subject: [PATCH 11/22] Update action.yml --- action.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/action.yml b/action.yml index 4f9e9c3..1e65723 100644 --- a/action.yml +++ b/action.yml @@ -27,9 +27,6 @@ runs: with: repository: Yanqiao4396/BranchWrite ref: insight - - name: Navigate to branch write repository - run: cd /Yanqiao4396/BranchWrite - shell: bash - run: pwd && echo ${{github.workspace}} shell: bash From 2f9849f7d1b44f3c0df870c8e4217fdda33f51e0 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:06:17 -0400 Subject: [PATCH 12/22] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1e65723..97e154f 100644 --- a/action.yml +++ b/action.yml @@ -30,7 +30,7 @@ runs: - run: pwd && echo ${{github.workspace}} shell: bash - - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir PyGithub + - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt shell: bash - run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }} shell: bash From ed1e08e80e8e864397e9b8764d53e8ed181fe608 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:09:32 -0400 Subject: [PATCH 13/22] Bug: expected arg amount are 5 not 4 arg[0] is file itself + 4 user args should 5 --- branchwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branchwrite.py b/branchwrite.py index aae6087..44e1d9c 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -82,7 +82,7 @@ def __write_content(self,content): def main(): args = sys.argv - expected_arg_amount = 4 + expected_arg_amount = 5 if len(args) != expected_arg_amount: raise ValueError(f"4 arguments are expected, {expected_arg_amount - len(args)} from it") branch_name = args[1] From ef902543a98913b7cd9a3149574761aa50d7dfd5 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:19:49 -0400 Subject: [PATCH 14/22] Update branchwrite.py --- branchwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branchwrite.py b/branchwrite.py index 44e1d9c..6cc99c4 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -113,4 +113,4 @@ def main(): if __name__ == "__main__": - main() + print(CUR_REPO) From 2e8dd523ef251167c062b84730e885f5ecdf6bb6 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:25:31 -0400 Subject: [PATCH 15/22] remove checjout --- action.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/action.yml b/action.yml index 97e154f..5b02148 100644 --- a/action.yml +++ b/action.yml @@ -22,11 +22,6 @@ inputs: runs: using: "composite" steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - repository: Yanqiao4396/BranchWrite - ref: insight - run: pwd && echo ${{github.workspace}} shell: bash From 06a63e3119e465d9a3d69b36b825ed7ddc1a8685 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:26:14 -0400 Subject: [PATCH 16/22] Update branchwrite.py --- branchwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branchwrite.py b/branchwrite.py index 6cc99c4..44e1d9c 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -113,4 +113,4 @@ def main(): if __name__ == "__main__": - print(CUR_REPO) + main() From 3cb09ead26e077bd7a8711e3c49d9e77655cb7d5 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:27:29 -0400 Subject: [PATCH 17/22] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5b02148..46ae596 100644 --- a/action.yml +++ b/action.yml @@ -25,7 +25,7 @@ runs: - run: pwd && echo ${{github.workspace}} shell: bash - - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt + - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir PyGithub shell: bash - run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }} shell: bash From 8ad84ef7f1f821e757fc643ad61a9e67d45e3bc7 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:29:30 -0400 Subject: [PATCH 18/22] Update action.yml --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 46ae596..11e42e8 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,11 @@ inputs: runs: using: "composite" steps: - + - name: Checkout repository + uses: actions/checkout@v2 + with: + repository: Yanqiao4396/BranchWrite + ref: insight - run: pwd && echo ${{github.workspace}} shell: bash - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir PyGithub From e246d2ec040b1665e3d53cdda169b87824099546 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 16:32:05 -0400 Subject: [PATCH 19/22] Update action.yml --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 11e42e8..0c37c25 100644 --- a/action.yml +++ b/action.yml @@ -23,10 +23,10 @@ runs: using: "composite" steps: - name: Checkout repository - uses: actions/checkout@v2 - with: - repository: Yanqiao4396/BranchWrite - ref: insight + uses: actions/checkout@v2 + with: + repository: Yanqiao4396/BranchWrite + ref: insight - run: pwd && echo ${{github.workspace}} shell: bash - run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir PyGithub From 18d7b5fadcabdfc9555aa21f7bdaad75d8982558 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 17:19:03 -0400 Subject: [PATCH 20/22] Update branchwrite.py --- branchwrite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/branchwrite.py b/branchwrite.py index 44e1d9c..11fc695 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -113,4 +113,5 @@ def main(): if __name__ == "__main__": + print(TOKEN) main() From 0e276de9901cf709e900960d345e016e8867d353 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 17:35:11 -0400 Subject: [PATCH 21/22] Update branchwrite.py --- branchwrite.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/branchwrite.py b/branchwrite.py index 11fc695..6966990 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -113,5 +113,4 @@ def main(): if __name__ == "__main__": - print(TOKEN) - main() + print("hi"+TOKEN) From bc1b39f0e318b0d36086ad1ffc2fb8e70e01f8b6 Mon Sep 17 00:00:00 2001 From: Yanqiao Chen Date: Mon, 19 Jun 2023 17:39:42 -0400 Subject: [PATCH 22/22] Update branchwrite.py --- branchwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branchwrite.py b/branchwrite.py index 6966990..44e1d9c 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -113,4 +113,4 @@ def main(): if __name__ == "__main__": - print("hi"+TOKEN) + main()