-
Notifications
You must be signed in to change notification settings - Fork 18
52 lines (44 loc) · 1.48 KB
/
update_libraries.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
name: Update libraries
on:
workflow_dispatch: # allow running on-demand
schedule:
# every friday at 18:00 UTC
- cron: '0 18 * * 5'
jobs:
update:
name: Update & Open Pull Request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: python -m pip install --upgrade requests packaging
- name: Update library versions
run: |
python shared/updater.py
python shared/ini2sh.py
- name: Adapt PR body
run: |
echo "See also: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> pr-body.txt
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v7
with:
add-paths: shared/packages.*
commit-message: Update libraries
branch: update/libraries
delete-branch: true
title: 'Automatic library update'
body-path: pr-body.txt
labels: |
update
automated pr
reviewers: carstene1ns, Ghabry, fdelapena
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request was ${{ steps.cpr.outputs.pull-request-operation }}:"
echo "Number = ${{ steps.cpr.outputs.pull-request-number }}"
echo "URL: ${{ steps.cpr.outputs.pull-request-url }}"