From 425af2e0dc0bd6a91c4ea7e9730df25a92f1d9c7 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 2 Feb 2021 18:42:07 +0100 Subject: [PATCH] Tune component update configuration - Include link to changelog of component in commit and PR message - Label pull request automatically with `area/build` - Enable sign-off of commits to free us from manual labour Signed-off-by: Hidde Beydals --- .github/workflows/update.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 52401de6..e0d7e268 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -32,7 +32,7 @@ jobs: go mod edit -require="github.com/fluxcd/$1/api@${RELEASE_VERSION}" fi - PR_BODY="$PR_BODY- $1 to ${RELEASE_VERSION}%0A" + PR_BODY="$PR_BODY- $1 to [${RELEASE_VERSION}](https://github.com/fluxcd/$1/blob/${RELEASE_VERSION}/CHANGELOG.md)%0A" fi } @@ -51,7 +51,7 @@ jobs: # diff change git diff - # export PR_BODY for PR + # export PR_BODY for PR and commit echo "::set-output name=pr_body::$PR_BODY" } @@ -60,19 +60,22 @@ jobs: uses: peter-evans/create-pull-request@v3 with: token: ${{ secrets.BOT_GITHUB_TOKEN }} - commit-message: Update toolkit components + commit-message: | + Update toolkit components + + ${{ steps.update.outputs.pr_body }} committer: GitHub author: fluxcdbot + signoff: true + branch: update-components title: Update toolkit components body: | ${{ steps.update.outputs.pr_body }} - - Auto-generated by [create-pull-request][1] - - [1]: https://github.com/peter-evans/create-pull-request - branch: update-components + labels: | + area/build reviewers: ${{ secrets.ASSIGNEES }} - name: Check output run: | echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" + echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"