Skip to content

Commit

Permalink
ci: output selected latest stable upstream tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
josedev-union authored May 31, 2024
1 parent 5282f31 commit b5f9555
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
git fetch tmp_upstream --tags
latest_tag_commit=$(git ls-remote --tags --sort=committerdate tmp_upstream|egrep -iv 'helm|rc'|tail -1|awk '{print $1}')
latest_tag=$(git ls-remote --tags --sort=committerdate tmp_upstream|egrep -iv 'helm|rc'|tail -1|awk '{print $2}')
echo "Latest stable tag: $latest_tag"
echo "Latest stable tag commit: $latest_tag_commit"
echo LATEST_TAG=${latest_tag} >> $GITHUB_ENV
echo "Pushing the latest tag commit as the origin SYNC_DEST_BRANCH"
Expand All @@ -59,4 +61,4 @@ jobs:
:crown: *An automated PR to sync with upstream*
Co-authored-by: josedev-union josedev-union@users.noreply.github.com
pr_reviewer: "HariSeldon23"
pr_reviewer: "HariSeldon23"

0 comments on commit b5f9555

Please sign in to comment.