Skip to content

Auto Update VCPKG

Auto Update VCPKG #31

name: Auto Update VCPKG
on:
schedule:
- cron: '0 0 1,25,29 * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v4
with:
submodules: true
- name: Keep up with master
id: get_commit_id
run: |
cd vcpkg
git checkout --end-of-options master --
git pull origin master
echo "::set-output name=commit_id::$(git rev-parse HEAD)"
- name: Commit it
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Update VCPKG to ${{steps.get_commit_id.outputs.commit_id}}" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.GITHUB_TOKEN}}