From 04f3616004c641064b6033ea1956027e544e1790 Mon Sep 17 00:00:00 2001 From: Mert Can Altin Date: Sat, 21 Sep 2024 16:28:52 +0300 Subject: [PATCH] calculate WPT new version after git node wpt update --- .github/workflows/update-wpt.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-wpt.yml b/.github/workflows/update-wpt.yml index 8c332f39b05b5f..b272551acb351f 100644 --- a/.github/workflows/update-wpt.yml +++ b/.github/workflows/update-wpt.yml @@ -32,11 +32,6 @@ jobs: run: | npm install -g @node-core/utils - - name: Calculate new version for WPT using jq - run: | - new_version=$(jq -r '.${{ matrix.subsystem }}.commit' test/fixtures/wpt/versions.json) - echo "new_version=$new_version" >> $GITHUB_ENV - - name: Compare versions run: | echo "Comparing current version to new version ${{ env.new_version }}" @@ -47,6 +42,11 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_USER_TOKEN }} + - name: Calculate new version for WPT using jq + run: | + new_version=$(jq -r '.${{ matrix.subsystem }}.commit' test/fixtures/wpt/versions.json) + echo "new_version=$new_version" >> $GITHUB_ENV + - name: Handle changes run: | if [[ "$(git status --porcelain)" != "" ]]; then