Skip to content

Commit

Permalink
Unreleased
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Jan 22, 2024
1 parent 441ab0c commit c35026b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ jobs:
- name: Get changelog
uses: ./.github/actions/get-changelog
with:
version: 202x.x.x (Unreleased)
version: Unreleased
id: changelog
# CHANGELOG.mdのバージョンの書き換え
- name: Modify CHANGELOG.md
run: |
sed -i 's/## 202x.x.x (Unreleased)/## ${{ steps.target_version.outputs.result }}/' CHANGELOG.md
sed -i 's/## Unreleased/## ${{ steps.target_version.outputs.result }}/' CHANGELOG.md
# release/ブランチとタグを作成
- name: Commit version
run: |
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ on:
type: string
description: 'package.jsons to rewrite (json)'
default: 'package.json'
changes_template:
type: string
description: 'Template for CHANGELOG.md'
default: |
## Unreleased
-
secrets:
RULESET_EDIT_APP_ID:
description: 'App ID for app to edit rulesets'
Expand Down Expand Up @@ -191,18 +198,7 @@ jobs:
ref: ${{ steps.declear-base-branch.outputs.base_branch }}
- name: Prepend CHANGELOG template
env:
CHANGES_TEMPLATE: |
## 202x.x.x (Unreleased)
### General
-
### Client
-
### Server
-
CHANGES_TEMPLATE: ${{ inputs.changes_template }}
run: sed -i "1i $(echo "${CHANGES_TEMPLATE}" | sed -r 's/$/\\n/' | while IFS= read -r line; do echo -n "$line"; done)" CHANGELOG.md
- name: Update CHANGELOG.md (prepend template)
run: |
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release-with-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ jobs:
pr_number: ${{ needs.get-pr.outputs.pr_number }}
user: LuckyBeast
package_jsons_to_rewrite: ${{ vars.PACKAGE_JSONS_TO_REWRITE }}
# Text to prepend to the changelog
# The first line must be `## Unreleased`
changes_template: |
## Unreleased
### General
-
### Client
-
### Server
-
secrets:
RULESET_EDIT_APP_ID: ${{ secrets.RULESET_EDIT_APP_ID }}
RULESET_EDIT_APP_PRIVATE_KEY: ${{ secrets.RULESET_EDIT_APP_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 202x.x.x (Unreleased)
## Unreleased

### General
-
Expand Down

0 comments on commit c35026b

Please sign in to comment.