Skip to content

Commit

Permalink
chore(github-action): display gh version
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Jan 16, 2025
1 parent 5ffc42c commit ba0b4a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion create-missing-PR.bash
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env bash

if ! gh --version 2>&1 >/dev/null;then
if ! gh --version >/dev/null 2>&1;then
echo "Please download and install gh cli https://github.com/cli/cli/releases/"
exit 1
fi

gh --version
gh repo set-default orange-cloudfoundry/k3s-packages-boshrelease

for branch in $(git --no-pager branch -r|grep -E "/release-[0-9.]*$");do
Expand Down
2 changes: 1 addition & 1 deletion create-release-branches.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script creates new release branches for all available release branches in k3s-io/k3s repo starting from current version in vendir.yml from master branch.
#
# When PUSH_OPTIONS=true, it also recreates all existing release branches from master branch

gh version
PUSH_OPTIONS=""
if [ "$FORCE_PUSH" = "true" ] ;then
PUSH_OPTIONS="$PUSH_OPTIONS --force"
Expand Down

0 comments on commit ba0b4a9

Please sign in to comment.