From 77768095875d3796397574f31a7a35ecc420aba6 Mon Sep 17 00:00:00 2001 From: typeling1578 Date: Fri, 1 Nov 2024 09:22:51 +0900 Subject: [PATCH] fix syntax error --- .../workflows/update-latest-json-portable.yml | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/update-latest-json-portable.yml b/.github/workflows/update-latest-json-portable.yml index 3c1b537..aa867c0 100644 --- a/.github/workflows/update-latest-json-portable.yml +++ b/.github/workflows/update-latest-json-portable.yml @@ -4,31 +4,31 @@ name: Update Floorp-Portable version on: - workflow_dispatch: - inputs: - display-version: - description: 'Display version of the update' - required: true - type: string + workflow_dispatch: + inputs: + display-version: + description: 'Display version of the update' + required: true + type: string jobs: - update-latest-json: - runs-on: ubuntu-latest - steps: - - name: Details - run: | + update-latest-json: + runs-on: ubuntu-latest + steps: + - name: Details + run: | echo "Display version: ${{ github.event.inputs.display-version }}" - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - - name: Git config - run: | + - name: Git config + run: | git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: get current version - run: | + - name: get current version + run: | echo "Getting current version" export CURRENT_VERSION=`cat ./browser-portable/latest.json | jq -r ".[].version" | head -1` echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV @@ -37,21 +37,21 @@ jobs: false fi - - name: Update latest.json - run: | + - name: Update latest.json + run: | echo "Updating latest.json" echo "new version: ${{ github.event.inputs.display-version }}" echo "current version: ${{ env.CURRENT_VERSION }}" sed -i 's/${{ env.CURRENT_VERSION }}/${{ github.event.inputs.display-version }}/g' ./browser-portable/latest.json - - name: Commit - run: | + - name: Commit + run: | git add . git commit -m "Update Floorp Portable version" git push - - name: Waiting 10 seconds... + - name: Waiting 10 seconds... run: | sleep 10 - - uses: ./.github/workflows/upload.yml + - uses: ./.github/workflows/upload.yml