Skip to content

Commit

Permalink
Weekly update submodule and create a PR (#362)
Browse files Browse the repository at this point in the history
* added a cron-update-vcpkg.yml

* trigger github action

* fix error in update-vcpkg.yml file

* changes to create pr against main

* update vcpkg and create pr

* update vcpkg

* update action run to once every week

* vcpkg checkout to 465862

---------

Co-authored-by: Kashyap Jois <kjois@iprdgroup.com>
  • Loading branch information
Ashu7950 and joiskash authored Oct 4, 2024
1 parent bdc49cc commit d59bf55
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cron-update-vcpkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Weekly Update

on:
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/master..HEAD)"
git checkout master
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
base: main
commit-message: |
[BOT] Update vcpkg submodule

0 comments on commit d59bf55

Please sign in to comment.