Skip to content

Commit

Permalink
Ensure that the user is authenticated on GitHub when running cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperg committed Aug 26, 2024
1 parent 301b4bf commit e596d18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infrastructure/task/scripts/cleanup-dev-envs.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
LAGOON_PROJECT="dpl-cms"
REPO="danskernesdigitalebibliotek/dpl-cms"

if ! gh auth status >/dev/null 2>&1; then
echo "Error: You are not logged into GitHub. Please log in using 'gh auth login' and try again."
exit 1
fi

DRY_RUN=false
if [ "$1" == "--dry-run" ]; then
DRY_RUN=true
Expand Down

0 comments on commit e596d18

Please sign in to comment.