[add] Receive PR workflow
This commit is contained in:
parent
3e0ac6ab06
commit
7c733b064d
1 changed files with 25 additions and 0 deletions
25
.github/workflows/pr-receive.yml
vendored
Normal file
25
.github/workflows/pr-receive.yml
vendored
Normal file
|
|
@ -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/
|
||||||
Loading…
Add table
Reference in a new issue