Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Feb 19, 2024
1 parent 7c8d8cb commit 17a7fb1
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/receive-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,27 @@
#
# -------------------------------------------------------------------------------------

name: Receive PR
name: Receive PR and Prepare for Processing

on:
pull_request:
branches: [ master ]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
prepare-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

steps:
- uses: actions/checkout@v2
- name: Display PR Information
run: echo "Received PR: ${{ github.event.number }}"

# imitation of a build process
- name: Build
run: |
echo "Building..."
sleep 100
echo "Done!"
- name: Save PR number
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/NR
- uses: actions/upload-artifact@v2
with:
name: pr
path: pr/
- name: Save PR Number for Later Use
run: echo "${{ github.event.number }}" > PR_NUMBER

- name: Upload PR Number as Artifact
uses: actions/upload-artifact@v3
with:
name: pr-number
path: PR_NUMBER

0 comments on commit 17a7fb1

Please sign in to comment.