Commit e8a7a2d 1 parent 5fa6714 commit e8a7a2d Copy full SHA for e8a7a2d
File tree 1 file changed +19
-9
lines changed
1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
pull_request :
8
+ env :
9
+ BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
10
+
8
11
9
12
jobs :
10
- build :
13
+ env-job :
14
+ runs-on : ubuntu-latest
15
+ outputs :
16
+ modified-branch-name : ${{ steps.env.outputs.MODIFIED_BRANCH_NAME }}
17
+ name : test-job
18
+ steps :
19
+ - name : Sets MODIFIED_BRANCH_NAME
20
+ id : env
21
+ env :
22
+ name : " ${{env.BRANCH_NAME}}"
23
+ run : |
24
+ echo "MODIFIED_BRANCH_NAME=${name/\//-}" >> ${GITHUB_OUTPUT}
25
+ cat ${GITHUB_OUTPUT}
11
26
27
+ build :
12
28
runs-on : macOS-latest
13
-
14
29
steps :
15
30
- uses : actions/checkout@v3
16
31
with :
17
32
fetch-depth : 0
18
33
submodules : true
19
- - name : Extract branch name
20
- shell : bash
21
- run : |
22
- echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
23
- id : extract_branch
24
34
- name : prepare
25
35
run : brew install exiftool imagemagick
26
36
- name : set up JDK 17
52
62
if : ${{ always() }}
53
63
uses : actions/upload-artifact@v3
54
64
with :
55
- name : SlidingUp-Screenshots-${{ steps.extract_branch .outputs.branch }}
65
+ name : SlidingUp-Screenshots-${{ needs.env-job .outputs.modified- branch-name }}
56
66
path : |
57
67
demo/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
58
68
demo/build/outputs/androidTest-results/connected
65
75
if : ${{ always() }}
66
76
uses : actions/upload-artifact@v3
67
77
with :
68
- name : SlidingUp-diffs-${{ steps.extract_branch .outputs.branch }}
78
+ name : SlidingUp-diffs-${{ needs.env-job .outputs.modified- branch-name }}
69
79
path : |
70
80
screenshotDiffs
You can’t perform that action at this time.
0 commit comments