From 3085df339726b7542fab5c5eef96916d4508af0e Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Fri, 23 Feb 2024 16:14:21 +0100 Subject: [PATCH] [ci skip] further fixes: * remove yq after update * set token for git --- .github/workflows/flathub.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/flathub.yml b/.github/workflows/flathub.yml index bfe039352..e4ea740cd 100644 --- a/.github/workflows/flathub.yml +++ b/.github/workflows/flathub.yml @@ -49,16 +49,17 @@ jobs: - uses: actions/checkout@v4 with: repository: 'flathub/org.cryptomator.Cryptomator' + token: ${{ secrets.CRYPTOBOT_WINGET_TOKEN }} - name: Checkout release branch run: | git checkout -b release/${{ needs.get-version.outputs.semVerStr }} - - name: Download yq - run: wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O yq && chmod +x yq - - name: Update build file + - name: Update build file with yq run: | + wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O yq && chmod +x yq ./yq -i eval '(.modules[] | select(.name == "cryptomator") | .build-options.env.VERSION) = "${{ needs.get-version.outputs.semVerStr }}"' org.cryptomator.Cryptomator.yaml ./yq -i eval '(.modules[] | select(.name == "cryptomator") | .sources[] | select(.type == "archive" and .url = "https://github.com/cryptomator/cryptomator/archive*") | .url) = "${{ needs.tarball.outputs.url }}"' org.cryptomator.Cryptomator.yaml ./yq -i eval '(.modules[] | select(.name == "cryptomator") | .sources[] | select(.type == "archive" and .url = "https://github.com/cryptomator/cryptomator/archive*") | .sha512) = "${{ needs.tarball.outputs.sha512 }}"' org.cryptomator.Cryptomator.yaml + rm yq - name: Commit and push run: | git stage .