-
Notifications
You must be signed in to change notification settings - Fork 79
54 lines (45 loc) · 1.62 KB
/
increment-version.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
54
name: Increment version of updated scrapers
on:
push:
branches: [ leia ]
paths:
- '**metadata.album.universal**resource.language.**strings.po'
- '**metadata.artists.universal**resource.language.**strings.po'
- '**metadata.universal**resource.language.**strings.po'
jobs:
default:
if: github.repository == 'xbmc/repo-scrapers'
runs-on: ubuntu-latest
name: Increment version of updated scrapers
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
path: ${{ github.event.repository.name }}
- name: Checkout Scripts
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: xbmc/weblate-supplementary-scripts
path: scripts
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Get changed files
uses: trilom/[email protected]
- name: Increment version of updated scrapers
run: |
python3 ../scripts/repo-resources/increment_version.py $HOME/files.json -bv -c
working-directory: ${{ github.event.repository.name }}
- name: Create PR for incremented versions
uses: peter-evans/[email protected]
with:
commit-message: Scraper add-on versions incremented
title: Scraper add-on versions incremented
body: Scraper add-on versions incrementing triggered by ${{ github.sha }}
branch: inc-ver
delete-branch: true
path: ./${{ github.event.repository.name }}
reviewers: gade01