From 1c3228a2f5a907e3c5a68287339bef5d92e1206c Mon Sep 17 00:00:00 2001 From: actionless Date: Sun, 26 Jun 2022 21:51:45 +0200 Subject: [PATCH] fix(gh: www): try another way of getting pr number --- .github/workflows/www.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/www.yml b/.github/workflows/www.yml index 1634ea5..43ca6c8 100644 --- a/.github/workflows/www.yml +++ b/.github/workflows/www.yml @@ -108,14 +108,6 @@ jobs: - name: Create Build Environment run: cmake -E make_directory -B "${{ github.workspace }}/build" - - name: Get Pull Request Number - id: pr - 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 }} - - name: Get AwesomeWM env: APIDOC_TOKEN: ${{ secrets.AWESOME_ROBOT_TOKEN || github.token }} @@ -127,7 +119,7 @@ jobs: if [ "${{ github.event_name }}" != 'pull_request' ]; then branch="${{ github.head_ref || github.ref_name }} " else - branch="pr-${{ steps.pr.outputs.pull_request_number }}" + branch="pr-${{ github.event.issue.number }}" fi if [ "$branch" != master ]; then cd "${{ github.workspace }}/src"