Skip to content

Commit

Permalink
ignore master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelopv committed Jul 20, 2023
1 parent 40e6833 commit 393cb69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/delete-old-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
# Extract the branch name from the full reference (e.g., "origin/branch-name")
branch_name=${branch#"origin/"}
# Skip the 'master' branch
if [ "$branch_name" = "master" ]; then
continue
fi
# Get the last commit date of the branch in Unix timestamp format
last_commit_date=$(git show -s --format=%ct "origin/$branch_name")
Expand Down

0 comments on commit 393cb69

Please sign in to comment.