Skip to content

Commit 588023a

Browse files
committed
Attempt some error handling for janitor / change actor -> owner
1 parent 0b0d57d commit 588023a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/template-janitor.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Get organization and project name
2323
run: |
24-
echo "NEW_ORG=${{ github.actor }}" >> $GITHUB_ENV
24+
echo "NEW_ORG=${{ github.repository_owner }}" >> $GITHUB_ENV
2525
echo "NEW_PROJECT=${{ github.event.repository.name }}" >> $GITHUB_ENV
2626
2727
- uses: octokit/[email protected]
@@ -32,6 +32,9 @@ jobs:
3232
repo: ${{ env.NEW_PROJECT }}
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
- run: "Release found: ${{ steps.get_repo_meta.outputs.data }}"
36+
- name: "Release could not be found. Request failed with status ${{ steps.get_repo_meta.outputs.status }}"
37+
if: ${{ failure() }}
3538

3639
# Rename all cpp_starter_project occurences to current repository and remove this workflow
3740
- name: Insert new org and project

0 commit comments

Comments
 (0)