Skip to content

Commit

Permalink
Merge pull request #11 from nsarlin-zama/rebase_version_on_main
Browse files Browse the repository at this point in the history
another test
  • Loading branch information
nsarlin-zama authored Oct 8, 2024
2 parents 47c1260 + 808d615 commit d92173c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
run: |
echo hello
git fetch --all
echo $(git for-each-ref --format='%(refname:short)' refs/heads)
echo $(git for-each-ref --format='%(refname:short)' refs/heads | grep -Po '^v\d.\d(.\d)?$')
echo $(git for-each-ref --format='%(refname:short)' refs/heads | grep -Po '^v\d.\d(.\d)?$' | sort -V | tail -n 1)
echo "DATA_LATEST_VERSION=$(git for-each-ref --format='%(refname:short)' refs/heads | grep -Po '^v\d.\d(.\d)?$' | sort -V | tail -n 1)" >> $GITHUB_ENV
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 \
| grep -Po '(?<=origin/)v\d.\d(.\d)?$' \
| sort -V | tail -n 1\
)" >> $GITHUB_ENV
- name: Rebase and push
run: |
Expand Down

0 comments on commit d92173c

Please sign in to comment.