Skip to content

Commit

Permalink
fix private repo issue for enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 23, 2024
1 parent 8082787 commit b27e10b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ runs:
### Start ###
### PREPARE ENVIRONMENT and VARIABLES ###
- uses: credfeto/[email protected]
if: ${{github.api_url == 'https://api.github.com'}}
id: visibility

- name: Do not allow private repos, unless explicitly specified
shell: bash
if: ${{ steps.visibility.outputs.is_private == 'true' }}
if: ${{ github.api_url == 'https://api.github.com' && steps.visibility.outputs.is_private == 'true' }}
run: |
echo "Private repos are not supported"
echo "Private repos are not supported for Github"
exit 1
- name: Donot allow self-hosted, if user has forgotten to set the host
Expand Down

0 comments on commit b27e10b

Please sign in to comment.