From ef65fac2d48e528799dbfd4f8642f37a7b536b6a Mon Sep 17 00:00:00 2001 From: Luciano Ramello Date: Tue, 31 Dec 2024 19:08:39 +0100 Subject: [PATCH] fix(action): update --- .github/workflows/diff.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/diff.yml b/.github/workflows/diff.yml index 299c444..ea512c3 100644 --- a/.github/workflows/diff.yml +++ b/.github/workflows/diff.yml @@ -1,7 +1,23 @@ on: pull_request: # branches: [ "main" ] - # Here the action will get the PR number + + jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Checkout Source + uses: actions/checkout@v4 + + + - name: Get Pull Request Number + id: pr + run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")" + env: + PR_NUMBER: ${{ github.event.number }} + + +# Here the action will get the PR number - name: Get Pull Request Number id: pr run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")" @@ -20,10 +36,3 @@ on: # checkout code from repo # run cargo run ${{ github.actor }} # The name of your branch is ${{ github.ref }} - - jobs: - success: - runs-on: ubuntu-latest - steps: - - name: Checkout Source - uses: actions/checkout@v4