From 759e83fb7ffacd048408d0d88b39851d4d9d4982 Mon Sep 17 00:00:00 2001 From: actionless Date: Sun, 26 Jun 2022 21:46:56 +0200 Subject: [PATCH] fix(gh: www): cd before getting pr number --- .github/workflows/www.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/www.yml b/.github/workflows/www.yml index 586a1f7..1634ea5 100644 --- a/.github/workflows/www.yml +++ b/.github/workflows/www.yml @@ -110,7 +110,9 @@ jobs: - name: Get Pull Request Number id: pr - run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")" + run: | + cd "${{ github.workspace }}" + echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}