Skip to content

Commit

Permalink
cmd/konflux: add version into update upstream pull-request title
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Nov 27, 2024
1 parent 201abff commit dd9abc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/konflux/templates/github/workflows/update-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
fi
git commit -F- <<EOF
[bot] Update from {{.Upstream}} to ${NEW_COMMIT}
[bot] Update {{.Version}} from {{.Upstream}} to ${NEW_COMMIT}
$ git diff --stat ${NEW_COMMIT}..${OLD_COMMIT}
$(cat /tmp/diff.txt | sed 's/^/ /')
Expand All @@ -78,7 +78,7 @@ jobs:
gh pr create -B {{.Version}} -H actions/update/sources-{{.Version}} --label=automated --label=upstream --fill
else
echo "a PR already exists, editing..."
gh pr edit --title "[bot] Update from {{.Upstream}} to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /')"
gh pr edit --title "[bot] Update {{.Version}} from {{.Upstream}} to ${NEW_COMMIT}" --body "$(cat /tmp/diff.txt | sed 's/^/ /')"
fi
env:
GH_TOKEN: {{"${{ secrets.GITHUB_TOKEN }}"}}

0 comments on commit dd9abc9

Please sign in to comment.