Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
boyan01 committed Jul 26, 2024
1 parent 4a3f5a9 commit e18a393
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/update-from-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
echo "new version available"
echo "new_version=${{ steps.fetch_release.outputs.tag_name }}" >> $GITHUB_ENV
echo "current_version=$current_version" >> $GITHUB_ENV
wget https://github.com/MixinNetwork/flutter-app/releases/download/v1.9.0/mixin_desktop_linux_amd64_portable.tar.gz -O mixin_desktop_linux_amd64_portable.tar.gz
new_version_sha256=$(sha256sum mixin_desktop_linux_amd64_portable.tar.gz | cut -d' ' -f1)
echo "new_version_sha256=$new_version_sha256" >> $GITHUB_ENV
else
echo "no new version available"
exit 0
Expand All @@ -46,6 +50,8 @@ jobs:
if: env.new_version
run: |
sed -i -e 's/${{ env.current_version }}/${{ env.new_version }}/g' one.mixin.messenger.yml
sed -i -e 's/sha256:.*/sha256: ${{ env.new_version_sha256 }}/g' one.mixin.messenger.yml
- name: Commit changes
if: env.new_version
Expand All @@ -56,12 +62,12 @@ jobs:
git commit -m "Update to version ${{ steps.fetch_release.outputs.tag_name }}"
git push origin HEAD:update-version-${{ steps.fetch_release.outputs.tag_name }}
- name: Create Pull Request
if: env.new_version
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update to version ${{ steps.fetch_release.outputs.tag_name }}
branch: update-version-${{ steps.fetch_release.outputs.tag_name }}
title: Update to version ${{ steps.fetch_release.outputs.tag_name }}
body: This PR updates the version to ${{ steps.fetch_release.outputs.tag_name }}.
# - name: Create Pull Request
# if: env.new_version
# uses: peter-evans/create-pull-request@v5
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# commit-message: Update to version ${{ steps.fetch_release.outputs.tag_name }}
# branch: update-version-${{ steps.fetch_release.outputs.tag_name }}
# title: Update to version ${{ steps.fetch_release.outputs.tag_name }}
# body: This PR updates the version to ${{ steps.fetch_release.outputs.tag_name }}.

0 comments on commit e18a393

Please sign in to comment.