Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Dec 11, 2024
1 parent 09f05ef commit 5a669bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ runs:
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
run: |
# Fetch GitHub Pages URL
# Fetch GitHub Pages URL
url=$(gh api "repos/$GITHUB_REPOSITORY/pages" --jq '.html_url' 2>/dev/null || echo '')
# Check if URL is non-empty (i.e., GitHub Pages is enabled)
if [ -n "$url" ]; then
# Check if URL is starts with http
if [[ $url == http* ]]; then
echo "GitHub Pages is enabled for this repository: $url"
echo "SITE_FULL_URL=$url" >> $GITHUB_ENV
else
Expand Down

0 comments on commit 5a669bf

Please sign in to comment.