forked from NREL/OpenStudio
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (47 loc) · 1.55 KB
/
dependabot_conan.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: "Conan Dependabot"
on:
# schedule:
# # Every week on Thursdays
# - cron: '23 10 * * 4'
push:
branches: [ bump_deps, dependabot_conan ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
shell: bash
working-directory: ./developer/conan
run: |
pip install -r requirements.txt
- name: Find outdated conan packages
shell: bash
working-directory: ./developer/conan
run: |
conan remote add nrel https://conan.openstudio.net/artifactory/api/conan/openstudio
conan config set general.revisions_enabled=True
# This returns 1 if update was needed
python dependabot_conan.py
- name: Commit results
if: failure()
shell: bash
run: |
set -x
git config user.name 'Conan Dependabot'
git config user.email '[email protected]'
git commit -am "Automated checkin - update conan recipes"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
if: failure()
with:
branch: dependabot/conan
committer: 'Conan Dependabot <[email protected]>'
delete-branch: true
title: "[bot] New upstream conan recipes"
body: |
Automatic run of `[dependabot_conan.py](developer/conan/dependabot_conan.py)`
which is done periodically to be made aware of upstream recipe updates