Skip to content

Commit

Permalink
fix(action): update
Browse files Browse the repository at this point in the history
  • Loading branch information
luchosr committed Dec 31, 2024
1 parent 6636f5e commit ef65fac
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
@@ -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 "")"
Expand All @@ -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

0 comments on commit ef65fac

Please sign in to comment.