-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix private repo issue for enterprise
- Loading branch information
1 parent
8082787
commit b27e10b
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|