Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
  • Loading branch information
jeandemanged committed Dec 16, 2024
1 parent 5d941a7 commit 0ecfbfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/scripts/check_integration_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ core_version=$2
# Add "-SNAPSHOT" to powsybl-core version if not already there
core_snapshot_version=$(echo "$core_version" | grep -q SNAPSHOT && echo "$core_version" || echo "$core_version-SNAPSHOT")

# Find if an integration branch exists
# Check if an integration branch exists
INTEGRATION_BRANCH=$(git ls-remote --heads "$repo" | grep -E "refs/heads/integration/powsyblcore-$core_snapshot_version" | sed 's/.*refs\/heads\///')
if [ -n "$INTEGRATION_BRANCH" ]; then
echo "SNAPSHOT VERSION EXIST: $INTEGRATION_BRANCH"
echo "Integration branch found: $INTEGRATION_BRANCH"
echo "INTEGRATION_BRANCH=$INTEGRATION_BRANCH" >> "$GITHUB_ENV"
else
echo "No SNAPSHOT branch found"
echo "No integration branch found, using main branch"
echo "INTEGRATION_BRANCH=main" >> "$GITHUB_ENV"
fi
1 change: 0 additions & 1 deletion .github/workflows/snapshot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Snapshot CI

on:
workflow_dispatch:
push: #tmp
schedule:
- cron: '30 3 * * *'

Expand Down

0 comments on commit 0ecfbfe

Please sign in to comment.