Skip to content

Commit

Permalink
Merge pull request #12 from nsarlin-zama/rebase_version_on_main
Browse files Browse the repository at this point in the history
final one ?
  • Loading branch information
nsarlin-zama authored Oct 8, 2024
2 parents d92173c + b243f59 commit 7020718
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ jobs:
- name: Get branch for the latest version
run: |
echo hello
git fetch --all
echo $(git for-each-ref --format='%(refname:short)' refs/remotes/origin)
echo $(git for-each-ref --format='%(refname:short)' refs/remotes/origin | grep -Po '(?<=origin/)v\d.\d(.\d)?$')
echo "DATA_LATEST_VERSION=$(git for-each-ref --format='%(refname:short)' refs/remotes/origin \
echo "DATA_LATEST_VERSION=\
$(git for-each-ref --format='%(refname:short)' refs/remotes/origin \
| grep -Po '(?<=origin/)v\d.\d(.\d)?$' \
| sort -V | tail -n 1\
)" >> $GITHUB_ENV
- name: Rebase and push
run: |
git switch $DATA_LATEST_VERSION
git rebase master
git rebase main
git push --force-with-lease

0 comments on commit 7020718

Please sign in to comment.