Skip to content

Commit

Permalink
Add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
philnewm committed Nov 8, 2024
1 parent 7a25dfe commit b8bb7f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/repo_variable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ jobs:
for repo in "${repos[@]}"; do
repo=$(echo "$repo" | xargs)
echo "repo: ynput/$repo"
echo "$(gh repo view "ynput/$repo")"
if ! gh repo view "ynput/$repo" &>/dev/null; then
echo "::warning::Repository $repo was not found."
continue
fi
if gh variable get "$variable_name" --repo "$repo" &>/dev/null; then
if gh variable get "$variable_name" --repo "ynput/$repo" &>/dev/null; then
echo "::warning::Variable '$variable_name' already exists in repository $repo."
continue
fi
Expand Down

0 comments on commit b8bb7f2

Please sign in to comment.