Skip to content

Commit

Permalink
fix update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Mar 10, 2024
1 parent feada17 commit 1d3683c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/wine-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,12 @@ jobs:
- name: Get Latest Wine Version
id: wine
run: |
echo ::set-output name=release_tag::$(curl -sL https://hub.docker.com/v2/namespaces/panard/repositories/wine/tags | jq -r '.results[].name' | grep '\-wow64$' | head -n1)
echo ::set-output name=current_tag::$(grep FROM Dockerfile|cut -d: -f2)
echo LATEST_TAG=$(curl -sL https://hub.docker.com/v2/namespaces/panard/repositories/wine/tags | jq -r '.results[].name' | grep '\-wow64$' | head -n1) >> $GITHUB_ENV
echo CURRENT_TAG=$(grep FROM Dockerfile|cut -d: -f2) >> $GITHUB_ENV
- name: Update Wine
if: steps.wine.outputs.current_tag != steps.wine.outputs.release_tag
env:
RELEASE_TAG: ${{ steps.wine.outputs.release_tag }}
if: env.CURRENT_TAG != env.LATEST_TAG
run: |
sed -i "s:FROM .*$:FROM panard/wine:$RELEASE_TAG" docker-wine/Dockerfile
sed -i "s:^\(It is based on .* wine \)[^ ]*[0-9]:\1$RELEASE_TAG:" README.md
sed -i "s:FROM .*$:FROM panard/wine:$LATEST_TAG" docker-wine/Dockerfile
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and macOS.
Join the "WineHQ Players" clan! (Account > Buddies, Clan, Chat > Look for WineHQ Players and contact the captain, or send a mail to panard at inzenet dot org with your MTGO user name)
It is based on an amd64 [debian:stable-slim](https://hub.docker.com/r/_/debian/) Linux distribution and [WineHQ](https://www.winehq.org/) 9.0-rc3 with WOW64 support.
It is based on an amd64 [debian:stable-slim](https://hub.docker.com/r/_/debian/) Linux distribution and [WineHQ](https://www.winehq.org/) with WOW64 support.
See https://appdb.winehq.org/objectManager.php?sClass=version&iId=32007 for more information.
Expand Down

0 comments on commit 1d3683c

Please sign in to comment.