Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly update submodule and create a PR #362

Merged
merged 10 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion vcpkg
Loading