-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (39 loc) · 1.15 KB
/
check_version_update.yaml
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
name: Check version updates for integration
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
check_and_create_pr:
name: Check and create PR if necessary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -U lastversion
- name: Install jq
run: |
sudo apt update
sudo apt install -y jq
- name: Check for updates
run: ./scripts/update_ThermiaOnlineAPI_version.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.TOKEN_FOR_GITHUB_ACCESS }}
commit-message: Update ThermiaOnlineAPI version
title: Update ThermiaOnlineAPI version
body: |
This PR updates the ThermiaOnlineAPI version to the latest version.
branch: update-dependencies
delete-branch: true