mirror of
https://github.com/dream-num/univer.git
synced 2026-09-01 15:29:43 +08:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: 🎬 Setup
|
|
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
pull_request:
|
|
branches: [dev]
|
|
|
|
permissions:
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
set-pr-info:
|
|
name: set PR info
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Save PR info
|
|
run: |
|
|
echo ${{ github.event.pull_request.number }} > ./pr-id.txt
|
|
echo ${{ github.head_ref }} >> ./pr-ref.txt
|
|
echo ${{ github.event.pull_request.head.repo.full_name || github.repository }} >> ./pr-repo.txt
|
|
|
|
- name: Upload PR number
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pr-id
|
|
path: ./pr-id.txt
|
|
|
|
- name: Upload PR ref
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pr-ref
|
|
path: ./pr-ref.txt
|
|
|
|
- name: Upload PR repo
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pr-repo
|
|
path: ./pr-repo.txt
|