From f61e31d9e421de5750c3d03fd64ef04a37adbcf8 Mon Sep 17 00:00:00 2001 From: Omkar Khatavkar Date: Wed, 14 Feb 2024 01:04:39 +0530 Subject: [PATCH] Update push_event.yml --- .github/workflows/push_event.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/push_event.yml b/.github/workflows/push_event.yml index aebfbee661a..68338e8a84e 100644 --- a/.github/workflows/push_event.yml +++ b/.github/workflows/push_event.yml @@ -8,6 +8,17 @@ jobs: name: Remove PRT labels for new commit runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + - name: Get Pull Request Number + id: pr + run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - run: echo ${{ steps.pr.outputs.pull_request_number }} + - name: Remove the previous PRT Result labels uses: actions/github-script@v7 with: