-
-
Notifications
You must be signed in to change notification settings - Fork 34
47 lines (45 loc) · 1.62 KB
/
wine-update.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
name: Automated Wine update
on:
push:
branches:
- for-next
schedule:
- cron: '0 12 * * Sat'
jobs:
updateWine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
token: ${{ secrets.PAT }}
- name: follow for-next
run: |
git fetch origin for-next
git merge --ff-only origin/for-next
- name: Get Latest Wine Version
id: wine
run: |
echo ::set-output name=release_tag::$(curl -sL https://www.winehq.org/news/ |grep "The Wine development release" |head -n1|cut -d " " -f6)
echo ::set-output name=current_tag::$(grep WINE_TAG= docker-wine/Dockerfile|cut -d- -f2)
- name: Update Wine
if: steps.wine.outputs.current_tag != steps.wine.outputs.release_tag
env:
RELEASE_TAG: ${{ steps.wine.outputs.release_tag }}
run: |
sed -i "s:WINE_TAG=.*$:WINE_TAG=wine-$RELEASE_TAG:" docker-wine/Dockerfile
sed -i "s:^\(It is based on .* wine \)[^ ]*[0-9]:\1$RELEASE_TAG:" README.md
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.PAT }}
commit-message: Update wine to ${{ steps.wine.outputs.release_tag }}
title: Update wine to ${{ steps.wine.outputs.release_tag }}
body: |
Updates wine to ${{ steps.wine.outputs.release_tag }}
```
./run-mtgo --update --test panard/mtgo:pr<#ID>
```
assignees: pauleve
labels: autodocker
branch: auto/wine-updates