From da10345f16f976aeac94cfa15b67ee458a245da3 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Fri, 2 Jun 2023 23:27:15 +0200 Subject: [PATCH 01/21] Fix pushing cassettes in CI --- .github/workflows/ci.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3388edb08e78..85d7ee85539b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: - 'tests/Auto-GPT-test-cassettes' - 'tests/integration/challenges/current_score.json' pull_request: - branches: [ stable, master ] + branches: [ stable, master, ci-test* ] pull_request_target: branches: [ master, ci-test* ] @@ -89,9 +89,13 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} submodules: true - - name: Check out cassettes + - id: checkout_cassettes + name: Check out cassettes if: ${{ startsWith(github.event_name, 'pull_request') }} run: | + echo "${{github.event_name}}" + echo "${{ github.server_url }}" + cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}" git config --global user.name "Auto-GPT-Bot" git config --global user.email "github-bot@agpt.co" @@ -110,9 +114,11 @@ jobs: git merge --abort git checkout ${{ github.event.pull_request.base.ref }} fi + echo "cassette_branch=$(git branch --show-current)" >> $GITHUB_OUTPUT else echo "Branch '$cassette_branch' does not exist in cassette submodule."\ "Using cassettes from ${{ github.event.pull_request.base.ref }}." + echo "cassette_branch=${{ github.event.pull_request.base.ref }}" >> $GITHUB_OUTPUT fi - name: Set up Python ${{ matrix.python-version }} @@ -166,6 +172,7 @@ jobs: if [[ "${{ startsWith(github.event_name, 'pull_request') }}" = "true" ]]; then is_pull_request=true cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}" + cassette_source_branch="${{ steps.checkout_cassettes.outputs.cassette_branch }}" base_branch="${{ github.event.pull_request.base.ref }}" else current_branch=$(echo ${{ github.ref }} | sed -e "s/refs\/heads\///g") @@ -173,15 +180,21 @@ jobs: fi cd tests/Auto-GPT-test-cassettes - git fetch origin $cassette_branch + git fetch origin $cassette_source_branch # Commit & push changes to cassettes if any - if ! git diff-index --quiet $cassette_branch; then + if ! git diff-index --quiet $cassette_source_branch; then + if ! [ "$cassette_branch" = "$cassette_source_branch" ]; then + git checkout -b $cassette_branch + fi git add . git commit -m "Auto-update cassettes" - git pull --rebase origin $cassette_branch - - git push origin HEAD:$cassette_branch + if [ $is_pull_request ]; then + git push -f origin HEAD:$cassette_branch + else + git pull --rebase origin $cassette_source_branch + git push origin HEAD:$cassette_branch + fi cd ../.. if [ $is_pull_request ]; then From 819eb2a3ae40845f84eb1c26e8e6f227c11d264f Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 16:33:01 -0700 Subject: [PATCH 02/21] ci test --- .github/workflows/ci.yml | 5 +++-- tests/integration/agent_factory.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85d7ee85539b..9133eaeadc35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -133,7 +133,7 @@ jobs: - name: Run pytest tests with coverage run: | - pytest -n auto --cov=autogpt --cov-report term-missing --cov-branch --cov-report xml --cov-report term + pytest -s tests/integration/challenges/basic_abilities/test_write_file.py python tests/integration/challenges/utils/build_current_score.py env: CI: true @@ -152,7 +152,8 @@ jobs: "Authorization: Basic x-access-token:${{ secrets.PAT_REVIEW }}" echo "config_key=$config_key" >> $GITHUB_OUTPUT - + git config --global user.name "Auto-GPT-Bot" + git config --global user.email "github-bot@agpt.co" - name: Push updated challenge scores if: github.event_name == 'push' run: | diff --git a/tests/integration/agent_factory.py b/tests/integration/agent_factory.py index 30d9cc13b2aa..010c4e84a652 100644 --- a/tests/integration/agent_factory.py +++ b/tests/integration/agent_factory.py @@ -82,7 +82,7 @@ def writer_agent(agent_test_config, memory_none: NoMemory, workspace: Workspace) ai_goals=[ "Use the write_to_file command to write 'Hello World' into a file named \"hello_world.txt\".", "Use the task_complete command to complete the task.", - "Do not use any other commands.", + "Do not use any other commands!", ], ) ai_config.command_registry = command_registry From 34c356c2f3896b68cbd15d9230eca8515261d18f Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 16:35:58 -0700 Subject: [PATCH 03/21] ci test --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9133eaeadc35..ea63a007dc7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,6 +170,8 @@ jobs: - id: push_cassettes name: Push updated cassettes run: | + git config --global user.name "Auto-GPT-Bot" + git config --global user.email "github-bot@agpt.co" if [[ "${{ startsWith(github.event_name, 'pull_request') }}" = "true" ]]; then is_pull_request=true cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}" From 3ec9e16b749889d59a28cc7addd0935863613c7a Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 16:42:41 -0700 Subject: [PATCH 04/21] ci test --- .github/workflows/ci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea63a007dc7e..8524c1e5712c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,13 +147,8 @@ jobs: - id: setup_git_auth name: Set up git token authentication run: | - config_key="http.${{ github.server_url }}/.extraheader" - git config "$config_key" \ - "Authorization: Basic x-access-token:${{ secrets.PAT_REVIEW }}" + echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token - echo "config_key=$config_key" >> $GITHUB_OUTPUT - git config --global user.name "Auto-GPT-Bot" - git config --global user.email "github-bot@agpt.co" - name: Push updated challenge scores if: github.event_name == 'push' run: | From 559664d5898ff609cdf2075c8ca77884193c9257 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 16:51:10 -0700 Subject: [PATCH 05/21] ci test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8524c1e5712c..696291622400 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,7 +147,6 @@ jobs: - id: setup_git_auth name: Set up git token authentication run: | - echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token - name: Push updated challenge scores if: github.event_name == 'push' @@ -165,6 +164,7 @@ jobs: - id: push_cassettes name: Push updated cassettes run: | + echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token git config --global user.name "Auto-GPT-Bot" git config --global user.email "github-bot@agpt.co" if [[ "${{ startsWith(github.event_name, 'pull_request') }}" = "true" ]]; then From 82b23bd51dbfb6b4be4be7933ffd7eb2d36517d7 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 16:56:26 -0700 Subject: [PATCH 06/21] ci test --- .github/workflows/ci.yml | 80 ---------------------------------------- 1 file changed, 80 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 696291622400..f657fd3111ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,61 +89,6 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} submodules: true - - id: checkout_cassettes - name: Check out cassettes - if: ${{ startsWith(github.event_name, 'pull_request') }} - run: | - echo "${{github.event_name}}" - echo "${{ github.server_url }}" - - cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}" - git config --global user.name "Auto-GPT-Bot" - git config --global user.email "github-bot@agpt.co" - cd tests/Auto-GPT-test-cassettes - - if git ls-remote --exit-code --heads origin $cassette_branch ; then - git fetch origin $cassette_branch - git fetch origin ${{ github.event.pull_request.base.ref }} - - git checkout $cassette_branch - - if git merge --no-commit --no-ff ${{ github.event.pull_request.base.ref }}; then - echo "Using cassettes from mirror branch, synced to upstream branch '${{ github.event.pull_request.base.ref }}'" - else - echo "Could not merge upstream changes to cassettes. Using cassettes from ${{ github.event.pull_request.base.ref }}." - git merge --abort - git checkout ${{ github.event.pull_request.base.ref }} - fi - echo "cassette_branch=$(git branch --show-current)" >> $GITHUB_OUTPUT - else - echo "Branch '$cassette_branch' does not exist in cassette submodule."\ - "Using cassettes from ${{ github.event.pull_request.base.ref }}." - echo "cassette_branch=${{ github.event.pull_request.base.ref }}" >> $GITHUB_OUTPUT - fi - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Run pytest tests with coverage - run: | - pytest -s tests/integration/challenges/basic_abilities/test_write_file.py - python tests/integration/challenges/utils/build_current_score.py - env: - CI: true - PROXY: ${{ secrets.PROXY }} - AGENT_MODE: ${{ vars.AGENT_MODE }} - AGENT_TYPE: ${{ vars.AGENT_TYPE }} - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - - id: setup_git_auth name: Set up git token authentication run: | @@ -216,28 +161,3 @@ jobs: - name: Post Set up git token auth run: | git config --unset "${{ steps.setup_git_auth.outputs.config_key }}" - - - name: Apply or remove behaviour change label and comment on PR - if: ${{ startsWith(github.event_name, 'pull_request') }} - run: | - PR_NUMBER=${{ github.event.pull_request.number }} - TOKEN=${{ secrets.PAT_REVIEW }} - REPO=${{ github.repository }} - - if [[ "${{ steps.push_cassettes.outputs.updated }}" == "true" ]]; then - echo "Adding label and comment..." - curl -X POST \ - -H "Authorization: Bearer $TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels \ - -d '{"labels":["behaviour change"]}' - - echo $TOKEN | gh auth login --with-token - gh api repos/$REPO/issues/$PR_NUMBER/comments -X POST -F body="You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged." - else - echo "Removing label..." - curl -X DELETE \ - -H "Authorization: Bearer $TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/$REPO/issues/$PR_NUMBER/labels/behaviour%20change - fi From e62001bbd5f5780945f6d9ae1fbd04b8bc43ffca Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 16:58:48 -0700 Subject: [PATCH 07/21] ci test --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f657fd3111ac..a377a1922c46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,9 +109,6 @@ jobs: - id: push_cassettes name: Push updated cassettes run: | - echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token - git config --global user.name "Auto-GPT-Bot" - git config --global user.email "github-bot@agpt.co" if [[ "${{ startsWith(github.event_name, 'pull_request') }}" = "true" ]]; then is_pull_request=true cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}" @@ -122,8 +119,16 @@ jobs: cassette_branch=$current_branch fi - cd tests/Auto-GPT-test-cassettes git fetch origin $cassette_source_branch + + echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token + git config --global user.name "Auto-GPT-Bot" + git config --global user.email "github-bot@agpt.co" + cd tests/Auto-GPT-test-cassettes + echo "test" >> test.txt + git add . + git commit -m "ok" + git push -f origin HEAD:$cassette_branch # Commit & push changes to cassettes if any if ! git diff-index --quiet $cassette_source_branch; then From ab6dd4bfbb69d172c3f8395d9ebcfacfa049f3da Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 17:02:19 -0700 Subject: [PATCH 08/21] ci test --- .github/workflows/ci.yml | 76 ++++------------------------------------ 1 file changed, 7 insertions(+), 69 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a377a1922c46..3305b18a5177 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,80 +89,18 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} submodules: true - - id: setup_git_auth - name: Set up git token authentication - run: | - - - name: Push updated challenge scores - if: github.event_name == 'push' - run: | - score_file="tests/integration/challenges/current_score.json" - - if ! git diff --quiet $score_file; then - git add $score_file - git commit -m "Update challenge scores" - git push origin HEAD:${{ github.ref }} - else - echo "The challenge scores didn't change." - fi - - id: push_cassettes name: Push updated cassettes run: | - if [[ "${{ startsWith(github.event_name, 'pull_request') }}" = "true" ]]; then - is_pull_request=true - cassette_branch="${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.head.ref }}" - cassette_source_branch="${{ steps.checkout_cassettes.outputs.cassette_branch }}" - base_branch="${{ github.event.pull_request.base.ref }}" - else - current_branch=$(echo ${{ github.ref }} | sed -e "s/refs\/heads\///g") - cassette_branch=$current_branch - fi - - git fetch origin $cassette_source_branch - - echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token + cd tests/Auto-GPT-test-cassettes git config --global user.name "Auto-GPT-Bot" git config --global user.email "github-bot@agpt.co" - cd tests/Auto-GPT-test-cassettes - echo "test" >> test.txt - git add . - git commit -m "ok" - git push -f origin HEAD:$cassette_branch - - # Commit & push changes to cassettes if any - if ! git diff-index --quiet $cassette_source_branch; then - if ! [ "$cassette_branch" = "$cassette_source_branch" ]; then - git checkout -b $cassette_branch - fi - git add . - git commit -m "Auto-update cassettes" - if [ $is_pull_request ]; then - git push -f origin HEAD:$cassette_branch - else - git pull --rebase origin $cassette_source_branch - git push origin HEAD:$cassette_branch - fi - - cd ../.. - if [ $is_pull_request ]; then - git fetch origin $base_branch - cassette_diff=$(git diff $cassette_branch origin/$base_branch) - else - git add tests/Auto-GPT-test-cassettes - git commit -m "Update cassette submodule" - git push origin HEAD:$current_branch - fi - else - echo "No cassette changes to commit" - fi - if [ -n "$cassette_diff" ]; then - echo "updated=true" >> $GITHUB_OUTPUT + # Check if there are any changes + if ! git diff --quiet; then + git add . + git commit -m "Auto-update cassettes after PR #${{ github.event.pull_request.number }}" + git push -f origin HEAD:refs/heads/${{ env.MIRROR_BRANCH_SUBMODULE}} else - echo "updated=false" >> $GITHUB_OUTPUT + echo "No changes to commit" fi - - - name: Post Set up git token auth - run: | - git config --unset "${{ steps.setup_git_auth.outputs.config_key }}" From d1f8d4f9ac4b4268f4913d169719e26e4617cd9f Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 17:07:10 -0700 Subject: [PATCH 09/21] ci test --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3305b18a5177..deb1a3548587 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,9 +93,16 @@ jobs: name: Push updated cassettes run: | cd tests/Auto-GPT-test-cassettes + echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token git config --global user.name "Auto-GPT-Bot" git config --global user.email "github-bot@agpt.co" - + + echo "test" >> test.txt + git add . + git commit -m "ok" + git checkout -b test + git push origin head + # Check if there are any changes if ! git diff --quiet; then git add . From 7eff78250695fc89aab77e5d22805b55b414e1dd Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 17:08:36 -0700 Subject: [PATCH 10/21] ci test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index deb1a3548587..0270aeacdbda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,7 @@ jobs: git add . git commit -m "ok" git checkout -b test - git push origin head + git push origin test # Check if there are any changes if ! git diff --quiet; then From 47c71717d255bd4dcc07529dafa8a6554f054984 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 17:12:19 -0700 Subject: [PATCH 11/21] ci test --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0270aeacdbda..190dd0c1679b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} submodules: true + token: ${{ secrets.PAT_REVIEW }} - id: push_cassettes name: Push updated cassettes From d65c7a1c433b58035e7e3f2fde97cbb2fd5eb1c2 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 17:13:01 -0700 Subject: [PATCH 12/21] ci test --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 190dd0c1679b..de2e0b929968 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,7 +94,6 @@ jobs: name: Push updated cassettes run: | cd tests/Auto-GPT-test-cassettes - echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token git config --global user.name "Auto-GPT-Bot" git config --global user.email "github-bot@agpt.co" From bf93b4124b25392273895be381d3935c453dbc4b Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 17:14:43 -0700 Subject: [PATCH 13/21] ci test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de2e0b929968..356b453d112c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,7 @@ jobs: git add . git commit -m "ok" git checkout -b test - git push origin test + git push -f origin test # Check if there are any changes if ! git diff --quiet; then From 9a07d998ddd60b296b438832821708551e1580cb Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 17:16:23 -0700 Subject: [PATCH 14/21] ci test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 356b453d112c..1c4e9ab07818 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,12 +88,12 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} submodules: true - token: ${{ secrets.PAT_REVIEW }} - id: push_cassettes name: Push updated cassettes run: | cd tests/Auto-GPT-test-cassettes + echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token git config --global user.name "Auto-GPT-Bot" git config --global user.email "github-bot@agpt.co" From 3f4591aed2b3cf6b5982d02a2396145e50adaf50 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 18:43:16 -0700 Subject: [PATCH 15/21] ci test --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c4e9ab07818..94c17c333b1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,15 +93,17 @@ jobs: name: Push updated cassettes run: | cd tests/Auto-GPT-test-cassettes - echo ${{ secrets.PAT_REVIEW }} | gh auth login --with-token git config --global user.name "Auto-GPT-Bot" git config --global user.email "github-bot@agpt.co" + + echo "test" >> test.txt git add . git commit -m "ok" git checkout -b test - git push -f origin test + + git push -f https://${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git HEAD:refs/heads/test # Check if there are any changes if ! git diff --quiet; then From 71a9de633726be9899dfdb83c9808ed83ae68945 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 18:44:55 -0700 Subject: [PATCH 16/21] ci test --- .github/workflows/ci.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94c17c333b1a..9650559a5ade 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,12 +104,3 @@ jobs: git checkout -b test git push -f https://${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git HEAD:refs/heads/test - - # Check if there are any changes - if ! git diff --quiet; then - git add . - git commit -m "Auto-update cassettes after PR #${{ github.event.pull_request.number }}" - git push -f origin HEAD:refs/heads/${{ env.MIRROR_BRANCH_SUBMODULE}} - else - echo "No changes to commit" - fi From aab72d26bd8a0505873c753223e5fd7957d8aec2 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 18:51:31 -0700 Subject: [PATCH 17/21] ci test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9650559a5ade..384a7b334092 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,4 +103,4 @@ jobs: git commit -m "ok" git checkout -b test - git push -f https://${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git HEAD:refs/heads/test + git push -f https://${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git test From 81e953086418416e3c8e23407c7b8ccb25603546 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 18:54:46 -0700 Subject: [PATCH 18/21] ci test --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 384a7b334092..475a1dc65d13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,5 +102,5 @@ jobs: git add . git commit -m "ok" git checkout -b test - - git push -f https://${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git test + git remote set-url origin https://Significant-Gravitas:${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git + git push -f origin test From a3ab284a2b4d2ead4ecbe27b4c40821880c6172e Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 18:56:07 -0700 Subject: [PATCH 19/21] ci test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 475a1dc65d13..7d49000f973e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,4 +103,4 @@ jobs: git commit -m "ok" git checkout -b test git remote set-url origin https://Significant-Gravitas:${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git - git push -f origin test +# git push -f origin test From d5e520455d0e122a50731dedbe3125909884eaac Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 19:13:56 -0700 Subject: [PATCH 20/21] ci test --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d49000f973e..475a1dc65d13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,4 +103,4 @@ jobs: git commit -m "ok" git checkout -b test git remote set-url origin https://Significant-Gravitas:${{ secrets.PAT_REVIEW }}@github.com/Significant-Gravitas/Auto-GPT-test-cassettes.git -# git push -f origin test + git push -f origin test From 9952c6b37a34c3e8c801b73825d94c7d7612bd8a Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Fri, 2 Jun 2023 19:14:08 -0700 Subject: [PATCH 21/21] ci test