-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (42 loc) · 1.28 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Auto update python packages
on:
workflow_dispatch:
schedule:
- cron: "15 5 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update_packages:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup vcpkg
uses: ./.github/actions/setup-vcpkg
- name: Format vcpkg.json
run: |
python ./scripts/update-ports.py
- name: Format vcpkg.json
run: |
vcpkg format-manifest --all $(find . -name "vcpkg.json")
git config --global user.email "updatebot@open-vcpkg"
git config --global user.name "Update Bot"
git add ports
git commit -m "Autoupdating ports"
- name: Update versions
run: |
for dir in ports/* ; do
vcpkg x-add-version ${dir##ports/} --overlay-ports=./ports \
--x-builtin-registry-versions-dir=./versions/ \
--x-builtin-ports-root=./ports
done
git add versions
git commit --am --no-edit
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7