Skip to content

Commit 4705292

Browse files
committed
add org name processing
Signed-off-by: Andrew Brandt <[email protected]>
1 parent db7d7a6 commit 4705292

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

action.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,21 @@ inputs:
1414
runs:
1515
using: "composite"
1616
steps:
17+
18+
- name: Install yq (mikefarah's version)
19+
shell: bash
20+
run: |
21+
sudo wget --quiet https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
22+
sudo chmod +x /usr/bin/yq
23+
yq --version # confirm installed
24+
25+
26+
1727
- name: List all repos in org
1828
shell: bash
1929
run: |
30+
ORG_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1)
31+
echo "Org name is: ${ORG_NAME}"
2032
echo "Fetching repos for organization: ${{ inputs.org }}"
2133
curl -s -H "Authorization: token ${{ inputs.token }}" \
2234
-H "Accept: application/vnd.github+json" \

0 commit comments

Comments
 (0)