-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (45 loc) · 1.66 KB
/
macos-update-gir-files.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
name: MacOS - Update gir files
on:
workflow_dispatch:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '00 1 * * 5'
jobs:
update:
name: MacOS - Update gir files
runs-on: macos-12
steps:
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout repository
uses: actions/checkout@v3
- name: Install libraries
run: |
brew install libadwaita
brew install gtk4
brew install gtk+3
brew install gstreamer
brew install gst-plugins-base
brew install gst-plugins-good
brew install gobject-introspection
brew install gtksourceview5
- name: Extract gir files
run: python transfer.py /usr/local/share/gir-1.0/ ./macos gir_files.txt
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
branch: macos-update-gir-files
commit-message: MacOS - Update gir files
title: MacOS - Update gir files
body: Keep the gir files in sync with current homebrew version
delete-branch: true