Skip to content

Commit

Permalink
testing submodule check status
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinteroflex committed Aug 1, 2024
1 parent 6f2711e commit 626ad43
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test_daily_latest_submodule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@ jobs:
run: |
# Fetch all branches
git fetch --all --quiet
# List all remote branches for debugging purposes
echo "Available branches:"
git branch -r
# List branches matching the pre/2.* pattern
BRANCHES=$(git branch -r | grep 'origin/pre/2\.' | sed 's|origin/||' | sort -V)

# Debugging: Print out the matched branches
echo "Matched branches with pre/2.* pattern:"
echo "$BRANCHES"
# Identify the latest branch
LATEST_BRANCH=$(echo "$BRANCHES" | tail -n 1)

# Set the latest branch as an environment variable
echo "LATEST_BRANCH=$LATEST_BRANCH" >> $GITHUB_ENV
echo "Latest pre/2.* branch is: $LATEST_BRANCH"
Expand Down

0 comments on commit 626ad43

Please sign in to comment.