Skip to content

Commit c784f95

Browse files
committed
Add set_org_name
1 parent 9a38f97 commit c784f95

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ runs:
3535
GITHUB_HEAD="HEAD:refs/heads/fix-text-${HEAD_REF}"
3636
git push -f "${REPO_URL}" "${GITHUB_HEAD}"
3737
shell: bash
38+
- name: Set org name
39+
uses: actions/github-script@v6.1.0
40+
if: env.REPO_NAME == github.repository
41+
id: set_org_name
42+
with:
43+
github-token: ${{input.github-token}}
44+
result-encoding: string
45+
script: return process.env.GITHUB_REPOSITORY.split('/')[0]
3846
- name: Get PullRequests
3947
uses: actions/github-script@v6.1.0
4048
env:

0 commit comments

Comments
 (0)