File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,16 @@ jobs:
43
43
name : size-data
44
44
path : temp/size
45
45
46
- - name : Save PR number
46
+ - name : Save PR number & base branch
47
47
if : ${{github.event_name == 'pull_request'}}
48
- run : echo ${{ github.event.number }} > ./pr.txt
48
+ run : |
49
+ echo ${{ github.event.number }} > ./number.txt
50
+ echo ${{ github.base_ref }} > ./base.txt
49
51
50
52
- uses : actions/upload-artifact@v4
51
53
if : ${{github.event_name == 'pull_request'}}
52
54
with :
53
- name : pr-number
54
- path : pr.txt
55
+ name : pr-info
56
+ path : |
57
+ number.txt
58
+ base.txt
Original file line number Diff line number Diff line change @@ -35,18 +35,24 @@ jobs:
35
35
- name : Install dependencies
36
36
run : pnpm install
37
37
38
- - name : Download PR number
38
+ - name : Download PR info
39
39
uses : dawidd6/action-download-artifact@v6
40
40
with :
41
- name : pr-number
41
+ name : pr-info
42
42
run_id : ${{ github.event.workflow_run.id }}
43
- path : /tmp/pr-number
43
+ path : /tmp/pr-info
44
44
45
45
- name : Read PR Number
46
46
id : pr-number
47
47
uses : juliangruber/read-file-action@v1
48
48
with :
49
- path : /tmp/pr-number/pr.txt
49
+ path : /tmp/pr-info/number.txt
50
+
51
+ - name : Read PR base branch
52
+ id : pr-base
53
+ uses : juliangruber/read-file-action@v1
54
+ with :
55
+ path : /tmp/pr-info/base.txt
50
56
51
57
- name : Download Size Data
52
58
uses : dawidd6/action-download-artifact@v6
58
64
- name : Download Previous Size Data
59
65
uses : dawidd6/action-download-artifact@v6
60
66
with :
61
- branch : ${{ github.base_ref }}
67
+ branch : ${{ steps.pr-base.outputs.content }}
62
68
workflow : size-data.yml
63
69
event : push
64
70
name : size-data
You can’t perform that action at this time.
0 commit comments