From 7c733b064d79e85811f7bdadf5bf83ccd1bd97ae Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 25 Feb 2022 20:48:09 +0800 Subject: [PATCH] [add] Receive PR workflow --- .github/workflows/pr-receive.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pr-receive.yml diff --git a/.github/workflows/pr-receive.yml b/.github/workflows/pr-receive.yml new file mode 100644 index 00000000..302e3d0e --- /dev/null +++ b/.github/workflows/pr-receive.yml @@ -0,0 +1,25 @@ +name: Receive PR + +# read-only repo token +# no access to secrets +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build + run: /bin/bash ./build.sh + + - name: Save PR number + run: | + mkdir -p ./pr + echo ${{ github.event.number }} > ./pr/NR + - uses: actions/upload-artifact@v2 + with: + name: pr + path: pr/