mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-19 22:21:46 +00:00
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 <hello@hidde.co>
This commit is contained in:
parent
22df860eca
commit
425af2e0dc
1 changed files with 11 additions and 8 deletions
19
.github/workflows/update.yml
vendored
19
.github/workflows/update.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
go mod edit -require="github.com/fluxcd/$1/api@${RELEASE_VERSION}"
|
go mod edit -require="github.com/fluxcd/$1/api@${RELEASE_VERSION}"
|
||||||
fi
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
# diff change
|
# diff change
|
||||||
git diff
|
git diff
|
||||||
|
|
||||||
# export PR_BODY for PR
|
# export PR_BODY for PR and commit
|
||||||
echo "::set-output name=pr_body::$PR_BODY"
|
echo "::set-output name=pr_body::$PR_BODY"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -60,19 +60,22 @@ jobs:
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
commit-message: Update toolkit components
|
commit-message: |
|
||||||
|
Update toolkit components
|
||||||
|
|
||||||
|
${{ steps.update.outputs.pr_body }}
|
||||||
committer: GitHub <noreply@github.com>
|
committer: GitHub <noreply@github.com>
|
||||||
author: fluxcdbot <fluxcdbot@users.noreply.github.com>
|
author: fluxcdbot <fluxcdbot@users.noreply.github.com>
|
||||||
|
signoff: true
|
||||||
|
branch: update-components
|
||||||
title: Update toolkit components
|
title: Update toolkit components
|
||||||
body: |
|
body: |
|
||||||
${{ steps.update.outputs.pr_body }}
|
${{ steps.update.outputs.pr_body }}
|
||||||
|
labels: |
|
||||||
Auto-generated by [create-pull-request][1]
|
area/build
|
||||||
|
|
||||||
[1]: https://github.com/peter-evans/create-pull-request
|
|
||||||
branch: update-components
|
|
||||||
reviewers: ${{ secrets.ASSIGNEES }}
|
reviewers: ${{ secrets.ASSIGNEES }}
|
||||||
|
|
||||||
- name: Check output
|
- name: Check output
|
||||||
run: |
|
run: |
|
||||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue