mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
fix(release): Bump the license date on master w/ calver releases (#658)
This commit is contained in:
parent
e293a0fc97
commit
1ba417663a
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -44,6 +44,8 @@ jobs:
|
||||
done
|
||||
echo "::set-output name=version::$DATE_PART.$PATCH_VERSION"
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.GH_SENTRY_BOT_PAT }}
|
||||
- uses: getsentry/craft@master
|
||||
if: ${{ !github.event.inputs.skip_prepare }}
|
||||
with:
|
||||
@ -65,3 +67,12 @@ jobs:
|
||||
GIT_COMMITTER_NAME: getsentry-bot
|
||||
GIT_AUTHOR_NAME: getsentry-bot
|
||||
EMAIL: bot@getsentry.com
|
||||
- id: bump-license-date
|
||||
if: ${{ !github.event.inputs.dry_run && !github.event.inputs.version }}
|
||||
env:
|
||||
GIT_COMMITTER_NAME: getsentry-bot
|
||||
GIT_AUTHOR_NAME: getsentry-bot
|
||||
EMAIL: bot@getsentry.com
|
||||
run: |
|
||||
sed -i -e "s/\(Change Date:\s*\)[-0-9]\+\$/\\1$(date +'%Y-%m-%d' -d '3 years')/" LICENSE
|
||||
git diff --quiet || git commit -anm 'license: Update BSL change date' && git push
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user