Skip to content

Commit

Permalink
Merge pull request #15 from KrogerWalt/14/Fixed/wrong_condition_in_if…
Browse files Browse the repository at this point in the history
…_statement

fixed wrong condition in if statement
  • Loading branch information
KrogerWalt authored Jun 2, 2021
2 parents 8b27289 + 51f8140 commit 69602d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 38 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/on-merge.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ jobs:

- uses: KrogerWalt/action-update-changelog@main
id: changelog-update
if: ${{ github.event.pull_request.merged == true }}
with:
ticket_url_prefix: https://github.com/${{ github.repository }}/issues/
version: ${{ steps.bump-semver.outputs.new_version }}

- name: print-changelog
run: cat CHANGELOG.md
- name: Commit Changelog
run: |
git config --global --replace-all user.name "$GITHUB_ACTOR"
git config --global --replace-all user.email "[email protected]"
git add CHANGELOG.md
git commit -m "Updating Changelog"
git push origin main
- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ will update the changelog to have a new entry like:
| `branch_name` | Overrides the branch name to parse for the message. Default is name of current branch. | `string` | `false` | `current branch` |
| `changelog_file` | Overrides the path to the changelog. Default is ./CHANGELOG.md | `string` | `false` | CHANGELOG.md |
| `ticket_url_prefix` | If provided, will be used to create a link for referenced issues. (Make sure to include ending slash if needed. This allows ticket to be param as well.) | `string` | `false` | `N/A` |
| `version` | The version of the release will be added above this and the other unreleased changes. If not supplied this change will be added to unreleased changes. | `string` | `false` | `N/A` |
| `version` | The version of the release will be added above this change. | `string` | `true` | `N/A` |


## Outputs
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ inputs:
description: If provided, will be used to create a link for referenced issues.
required: false
version:
description: The version of the release will be added above this and the other unreleased changes. If not supplied this change will be added to unreleased changes.
required: false
description: The version of the release will be added above this change.
required: true
outputs:
change_md:
description: The Markdown that was generated for this change.
Expand Down

0 comments on commit 69602d6

Please sign in to comment.