From 1ed5f3ecaf7cf5298b0f7216d0f2c97639377bff Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Fri, 12 Jan 2024 13:39:45 +0100 Subject: [PATCH] build: try to get pr number from env --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc4ff304..6539f25c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,12 +38,17 @@ jobs: - uses: teatimeguest/setup-texlive-action@v3 with: packages: scheme-basic + - name: Get PR number + run: | + echo "${{ toJSON(github.event.pull_request) }}" >> pr.json + echo "pr_number=$(jq -r '.number' pr.json)" >> $GITHUB_ENV + if: ${{ steps.release.outputs.prs_created }} if: ${{ steps.release.outputs.prs_created }} - - name: Checkout code + - name: Checkout PR code uses: actions/checkout@v4 with: - ref: refs/pull/${{ steps.release.outputs.pr.number }}/merge - if: ${{ steps.release.outputs.prs_created }} + ref: refs/pull/${{ env.pr_number }}/merge + if: ${{ steps.release.outputs.prs_created }} - name: tag run: l3build tag 0.1.0 if: ${{ steps.release.outputs.prs_created }}