From d703f16c497424b31fc464718194817c7271f8a9 Mon Sep 17 00:00:00 2001 From: Sam Vente Date: Mon, 31 Jul 2023 12:48:51 +0200 Subject: [PATCH] add pr checkout to update version --- .github/workflows/update_dev_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_dev_version.yml b/.github/workflows/update_dev_version.yml index bd9512b..97f7c23 100644 --- a/.github/workflows/update_dev_version.yml +++ b/.github/workflows/update_dev_version.yml @@ -23,7 +23,7 @@ jobs: run: | git config user.name "GitHub Actions Bot" git config user.email "<>" - git checkout ${{ github.pull_requet.head.ref }} + gh pr checkout ${{ github.pull_request.number }} - name: Calculate new dev version run: | DEV_VERSION=$(cat __init__.py | awk '/__version__/{print $0}' | awk -F'dev' '{print $2}' | tr -d '\"')