Commit 8708db5 1 parent c8de1df commit 8708db5 Copy full SHA for 8708db5
File tree 2 files changed +4
-18
lines changed
2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,11 @@ jobs:
13
13
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
14
14
with :
15
15
fetch-depth : 0
16
- - name : Set org name
17
- uses : actions/github-script@v7.0.1
18
- id : set_org_name
19
- with :
20
- github-token : ${{secrets.GITHUB_TOKEN}}
21
- result-encoding : string
22
- script : return process.env.GITHUB_REPOSITORY.split('/')[0]
23
16
- name : Get PullRequests
24
17
uses : actions/github-script@v7.0.1
25
18
id : get_pull_requests
26
19
env :
27
- ORG_NAME : ${{steps.set_org_name.outputs.result }}
20
+ ORG_NAME : ${{ github.repository_owner }}
28
21
with :
29
22
github-token : ${{secrets.GITHUB_TOKEN}}
30
23
script : |
34
27
uses : actions/github-script@v7.0.1
35
28
if : ${{ steps.get_pull_requests.outputs.result == 0 }}
36
29
env :
37
- ORG_NAME : ${{steps.set_org_name.outputs.result }}
30
+ ORG_NAME : ${{ github.repository_owner }}
38
31
with :
39
32
github-token : ${{secrets.GITHUB_TOKEN}}
40
33
script : |
Original file line number Diff line number Diff line change @@ -15,19 +15,12 @@ jobs:
15
15
- name : Get diff
16
16
id : get_diff
17
17
run : bash "${GITHUB_WORKSPACE}/scripts/pr_release_hato_bot/pr_release/get_diff.sh"
18
- - name : Set org name
19
- uses : actions/github-script@v7.0.1
20
- id : set_org_name
21
- with :
22
- github-token : ${{secrets.GITHUB_TOKEN}}
23
- result-encoding : string
24
- script : return process.env.GITHUB_REPOSITORY.split('/')[0]
25
18
- name : Get PullRequests
26
19
uses : actions/github-script@v7.0.1
27
20
if : ${{ steps.get_diff.outputs.result != '' }}
28
21
id : get_pull_requests
29
22
env :
30
- ORG_NAME : ${{steps.set_org_name.outputs.result }}
23
+ ORG_NAME : ${{ github.repository_owner }}
31
24
with :
32
25
github-token : ${{secrets.GITHUB_TOKEN}}
33
26
script : |
37
30
uses : actions/github-script@v7.0.1
38
31
if : ${{ steps.get_diff.outputs.result != '' && steps.get_pull_requests.outputs.result == 0 }}
39
32
env :
40
- ORG_NAME : ${{steps.set_org_name.outputs.result }}
33
+ ORG_NAME : ${{ github.repository_owner }}
41
34
with :
42
35
github-token : ${{secrets.GITHUB_TOKEN}}
43
36
script : |
You can’t perform that action at this time.
0 commit comments