|
|
@ -77,6 +77,7 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
VERSION="${{ github.event.release.tag_name }}"
|
|
|
|
VERSION="${{ github.event.release.tag_name }}"
|
|
|
|
BRANCH="changelog-update-$VERSION"
|
|
|
|
BRANCH="changelog-update-$VERSION"
|
|
|
|
|
|
|
|
LABEL="release changelog"
|
|
|
|
|
|
|
|
|
|
|
|
git config user.email "action@github.com"
|
|
|
|
git config user.email "action@github.com"
|
|
|
|
git config user.name "GitHub Action"
|
|
|
|
git config user.name "GitHub Action"
|
|
|
@ -84,9 +85,13 @@ jobs:
|
|
|
|
git checkout -b $BRANCH
|
|
|
|
git checkout -b $BRANCH
|
|
|
|
git commit -am "Changelog update - $VERSION"
|
|
|
|
git commit -am "Changelog update - $VERSION"
|
|
|
|
git push --set-upstream origin $BRANCH
|
|
|
|
git push --set-upstream origin $BRANCH
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gh label create "$LABEL" \
|
|
|
|
|
|
|
|
--description "Pull requests with release changelog update" \
|
|
|
|
|
|
|
|
|| true
|
|
|
|
|
|
|
|
|
|
|
|
gh pr create \
|
|
|
|
gh pr create \
|
|
|
|
--title "Changelog update - \`$VERSION\`" \
|
|
|
|
--title "Changelog update - \`$VERSION\`" \
|
|
|
|
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
|
|
|
|
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
|
|
|
|
--base main \
|
|
|
|
--label "$LABEL" \
|
|
|
|
--head $BRANCH
|
|
|
|
--head $BRANCH
|
|
|
|