From 71bfbf88dee804563088145f0934d7eb6899c155 Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Mon, 3 Jun 2024 14:05:08 +0530 Subject: [PATCH 1/8] added a cron-update-vcpkg.yml --- .github/workflows/cron-update-vcpkg.yml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/cron-update-vcpkg.yml diff --git a/.github/workflows/cron-update-vcpkg.yml b/.github/workflows/cron-update-vcpkg.yml new file mode 100644 index 000000000..40b644909 --- /dev/null +++ b/.github/workflows/cron-update-vcpkg.yml @@ -0,0 +1,39 @@ +name: Weekly Update + +on: + push: + branches: [ aa/update-submodule ] + schedule: + - cron: "0 0 * * 1" + workflow_dispatch: + +jobs: + update-vcpkg-submodule: + runs-on: ubuntu-20.04 + steps: + - name: Check out repository code recursively + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Pull changes in vcpkg submodule + id: remote-update + run: | + cd vcpkg + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + echo "::set-output name=has_update::$(git --no-pager diff --name-only origin/main..HEAD)" + git checkout main + git pull + + - if: steps.remote-update.outputs.has_update != '' + name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + signoff: true + delete-branch: true + title: 'Update vcpkg submodule' + branch: update-vcpkg + commit-message: | + [BOT] Update vcpkg submodule \ No newline at end of file From 80835adfcfa64485bb108e1054446ae284dbdb2f Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Mon, 3 Jun 2024 14:25:27 +0530 Subject: [PATCH 2/8] trigger github action --- .github/workflows/cron-update-vcpkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cron-update-vcpkg.yml b/.github/workflows/cron-update-vcpkg.yml index 40b644909..d17ee431b 100644 --- a/.github/workflows/cron-update-vcpkg.yml +++ b/.github/workflows/cron-update-vcpkg.yml @@ -36,4 +36,4 @@ jobs: title: 'Update vcpkg submodule' branch: update-vcpkg commit-message: | - [BOT] Update vcpkg submodule \ No newline at end of file + [BOT] Update vcpkg submodule. \ No newline at end of file From e329e6d441e77dd34034fcfacd3f68f9187e23f7 Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Mon, 3 Jun 2024 14:30:10 +0530 Subject: [PATCH 3/8] fix error in update-vcpkg.yml file --- .github/workflows/cron-update-vcpkg.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron-update-vcpkg.yml b/.github/workflows/cron-update-vcpkg.yml index d17ee431b..38ba173e8 100644 --- a/.github/workflows/cron-update-vcpkg.yml +++ b/.github/workflows/cron-update-vcpkg.yml @@ -22,8 +22,8 @@ jobs: cd vcpkg git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - echo "::set-output name=has_update::$(git --no-pager diff --name-only origin/main..HEAD)" - git checkout main + echo "::set-output name=has_update::$(git --no-pager diff --name-only origin/master..HEAD)" + git checkout master git pull - if: steps.remote-update.outputs.has_update != '' From fbea1ff1d33a29bcb676dcd1cc9013cca37fa181 Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Mon, 3 Jun 2024 14:53:24 +0530 Subject: [PATCH 4/8] changes to create pr against main --- .github/workflows/cron-update-vcpkg.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cron-update-vcpkg.yml b/.github/workflows/cron-update-vcpkg.yml index 38ba173e8..cee558e19 100644 --- a/.github/workflows/cron-update-vcpkg.yml +++ b/.github/workflows/cron-update-vcpkg.yml @@ -35,5 +35,6 @@ jobs: delete-branch: true title: 'Update vcpkg submodule' branch: update-vcpkg + base: main commit-message: | [BOT] Update vcpkg submodule. \ No newline at end of file From bf92067b16df933bb671ea4e7b4666752b82357c Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Mon, 3 Jun 2024 15:09:38 +0530 Subject: [PATCH 5/8] update vcpkg and create pr --- .github/workflows/cron-update-vcpkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cron-update-vcpkg.yml b/.github/workflows/cron-update-vcpkg.yml index cee558e19..46401e80f 100644 --- a/.github/workflows/cron-update-vcpkg.yml +++ b/.github/workflows/cron-update-vcpkg.yml @@ -37,4 +37,4 @@ jobs: branch: update-vcpkg base: main commit-message: | - [BOT] Update vcpkg submodule. \ No newline at end of file + [BOT] Update vcpkg submodule \ No newline at end of file From 33f31685db6fbc2b123f1e92bc86e7f89f5df967 Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Mon, 3 Jun 2024 15:12:05 +0530 Subject: [PATCH 6/8] update vcpkg --- vcpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcpkg b/vcpkg index 7754d62d1..2979bf2d7 160000 --- a/vcpkg +++ b/vcpkg @@ -1 +1 @@ -Subproject commit 7754d62d19501a3bb4e2d4f2eab80e8de9703e41 +Subproject commit 2979bf2d70b7e65aa3c3a0d9f779bbffd7d0ff62 From cf1bed804d02ac60d6d1677c5afb73aadad9f28f Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Mon, 3 Jun 2024 17:20:00 +0530 Subject: [PATCH 7/8] update action run to once every week --- .github/workflows/cron-update-vcpkg.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cron-update-vcpkg.yml b/.github/workflows/cron-update-vcpkg.yml index 46401e80f..9e955dc71 100644 --- a/.github/workflows/cron-update-vcpkg.yml +++ b/.github/workflows/cron-update-vcpkg.yml @@ -1,8 +1,6 @@ name: Weekly Update on: - push: - branches: [ aa/update-submodule ] schedule: - cron: "0 0 * * 1" workflow_dispatch: From 0c13a6affef6214582fce364c36fc513d49f3b56 Mon Sep 17 00:00:00 2001 From: Ashu7950 Date: Tue, 16 Jul 2024 14:51:53 +0530 Subject: [PATCH 8/8] vcpkg checkout to 465862 --- vcpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcpkg b/vcpkg index 2979bf2d7..4658624c5 160000 --- a/vcpkg +++ b/vcpkg @@ -1 +1 @@ -Subproject commit 2979bf2d70b7e65aa3c3a0d9f779bbffd7d0ff62 +Subproject commit 4658624c5f19c1b468b62fe13ed202514dfd463e