Skip to content

Commit

Permalink
ci: update sync pull request title properly
Browse files Browse the repository at this point in the history
  • Loading branch information
josedev-union committed Jan 20, 2024
1 parent 019ad53 commit 2ef3e46
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 @@ -34,6 +34,8 @@ jobs:
git remote add tmp_upstream ${{ env.UPSTREAM_REPO }}
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_TAG=${latest_tag} >> $GITHUB_ENV
echo "Pushing the latest tag commit as the origin SYNC_DEST_BRANCH"
git branch -D upstream || echo "${{ env.SYNC_DEST_BRANCH }} branch deleted!"
Expand All @@ -50,7 +52,7 @@ jobs:
source_branch: ${{ env.SYNC_DEST_BRANCH }}
destination_branch: ortege
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Pulling ${{ github.ref }} into ortege"
pr_title: "Pulling Upstream ${{ env.LATEST_TAG }} into ortege"
pr_body: |
:crown: *An automated PR to sync with upstream*
Expand Down

0 comments on commit 2ef3e46

Please sign in to comment.