-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update github workflow to update changelog on every PR merge #286
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f0acee6
update github workflow to write changelog
amishas157 df6247d
Use major/minor/patch instead of release/minor/patch; Default to patc…
amishas157 23c5803
Run release drafter only on PR merge to master
amishas157 2ea2e08
lint
amishas157 a2bcb3c
only major and minor
amishas157 f346e0b
Update CHANGELOG.md
amishas157 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,8 @@ name: Release Drafter and Publisher | |
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
types: | ||
- closed | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} | ||
|
@@ -13,7 +14,7 @@ permissions: | |
|
||
jobs: | ||
new_release: | ||
if: github.event.pull_request.merged == true | ||
if: github.ref == 'refs/heads/master' && github.event.pull_request.merged == true | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
|
@@ -51,12 +52,31 @@ jobs: | |
elif [[ $BRANCH_NAME =~ ^feature/ ]]; then | ||
VERSION_PARTS[1]=$((VERSION_PARTS[1] + 1)) | ||
VERSION_PARTS[2]=0 | ||
elif [[ $BRANCH_NAME =~ ^patch/ ]]; then | ||
else | ||
VERSION_PARTS[2]=$((VERSION_PARTS[2] + 1)) | ||
fi | ||
NEXT_VERSION="v${VERSION_PARTS[0]}.${VERSION_PARTS[1]}.${VERSION_PARTS[2]}" | ||
echo ::set-output name=NEXT_VERSION::"$NEXT_VERSION" | ||
|
||
- name: Update CHANGELOG.md | ||
run: | | ||
EXISTING_CHANGELOG=$(cat CHANGELOG.md) | ||
echo " " > CHANGELOG.md | ||
echo "## ${{ steps.nextversion.outputs.NEXT_VERSION }}" >> CHANGELOG.md | ||
echo "- ${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }}) @${{ github.event.pull_request.user.login }}" >> CHANGELOG.md | ||
echo " " >> CHANGELOG.md | ||
echo -e "$EXISTING_CHANGELOG" >> CHANGELOG.md | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add CHANGELOG.md | ||
git commit -m "Update CHANGELOG.md for PR #${{ github.event.pull_request.number }}" | ||
|
||
- name: Push changes | ||
run: git push origin HEAD:master | ||
|
||
- name: Create and publish new tag | ||
run: | | ||
git tag ${{ steps.nextversion.outputs.NEXT_VERSION }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## v2.0.0.md | ||
amishas157 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- Release/CI enhancements (#247) @laysabit | ||
- Update readme (#245) @chowbao | ||
- Create codeql.yml (#243) @kanwalpreetd | ||
- Update to latest stellar/go change with updated ledgerexporter zstd (#244) @chowbao | ||
- Update to use BufferedStorageBackend to read txmeta files (#242) @chowbao | ||
- Add contract code fees (#241) @chowbao | ||
- Add fee fields; formatting for warnings (#240) @chowbao | ||
- adding ledgerbackend datastore txmeta as a data source (#235) @chowbao | ||
- Feature/change workdir (#238) @edualvess | ||
- Add `ledger_key_hash` to `history_operations` (#237) @lucaszanotelli | ||
- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#232) @dependabot | ||
- Fix operation trace code bug (#236) @chowbao | ||
- Fix fee charged calculation (#234) @chowbao | ||
- Release drafter and publisher (#233) @laysabit | ||
- Update soroban fees (#231) @chowbao | ||
- Add case for null operationResultTr for operation_trace_code (#230) @chowbao | ||
- Enable diagnostic events (#229) @chowbao | ||
- Log Transaction Codes and Operation Traces (#228) @sydneynotthecity | ||
|
||
## v1.0.0 | ||
|
||
- Update stellar-core version by @chowbao in https://github.com/stellar/stellar-etl/pull/216 | ||
- doc : commented functions in cmd and internal/input folder by @laysabit in https://github.com/stellar/stellar-etl/pull/217 | ||
- Add user agent to captive core config by @chowbao in https://github.com/stellar/stellar-etl/pull/219 | ||
- Add export all history command by @chowbao in https://github.com/stellar/stellar-etl/pull/220 | ||
- Add OperationTypeManageSellOffer operation type to history_assets export by @cayod in https://github.com/stellar/stellar-etl/pull/214 | ||
- Export_assets fix by @cayod in https://github.com/stellar/stellar-etl/pull/222 | ||
- Update core image for testnet reset by @chowbao in https://github.com/stellar/stellar-etl/pull/223 | ||
- use NewLedgerChangeReaderFromLedgerCloseMeta by @sfsf9797 in https://github.com/stellar/stellar-etl/pull/221 | ||
- Fix contract data balance holder by @chowbao in https://github.com/stellar/stellar-etl/pull/225 | ||
- Revert "Fix contract data balance holder" by @chowbao in https://github.com/stellar/stellar-etl/pull/226 | ||
- Add common interface to write exported files by @chowbao in https://github.com/stellar/stellar-etl/pull/215 | ||
- Fix soroban hashes to hexstring by @chowbao in https://github.com/stellar/stellar-etl/pull/227 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update
release
andfeature
in tomajor
andminor
in the if/elseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed