Skip to content

Commit

Permalink
Fix PR titles made by prepare/publish release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
NCombarieu committed Feb 14, 2023
1 parent e0c335e commit 6f22bb5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Automated Crowdin downstream
title: "[i18n] Automated Crowdin downstream"
title: "[${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}][i18n] Automated Crowdin downstream"
body: |
This is an automated PR that is part of Prepare Release automated workflow (2 out of 2).
Please ensure that there are no errors or invalid files are in the PR.
Expand Down Expand Up @@ -101,13 +101,19 @@ jobs:
);
return await script({github, context});
- name: Extract Semver
id: semver_parser
uses: booxmedialtd/[email protected]
with:
input_string: ${{ steps.bump_version_stable.outputs.new_version }}

- name: Create Pull Request
id: cpr_bump_stable
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Version bump to ${{ steps.bump_version_stable.outputs.new_version }}
title: Version bump to ${{ steps.bump_version_stable.outputs.new_version }}
commit-message: "[${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}] Version bump to ${{ steps.bump_version_stable.outputs.new_version }}"
title: "[${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}] Version bump to ${{ steps.bump_version_stable.outputs.new_version }}"
body: |
This is an automated PR that is part of Prepare Release automated workflow (1 out of 2).
Please ensure that there are no errors or invalid files are in the PR.
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,19 @@ jobs:
);
return await script({github, context});
- name: Extract Semver
id: semver_parser
uses: booxmedialtd/[email protected]
with:
input_string: ${{ steps.bump_version_stable.outputs.new_version }}

- name: Create Pull Request
id: cpr_bump_dev
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Version bump to ${{ steps.bump_version_dev.outputs.new_version }}
title: Version bump to ${{ steps.bump_version_dev.outputs.new_version }}
commit-message: "[${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}]Version bump to ${{ steps.bump_version_dev.outputs.new_version }}"
title: "[${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }}]Version bump to ${{ steps.bump_version_dev.outputs.new_version }}"
body: |
This is an automated PR.
Please ensure that there are no errors or invalid files are in the PR.
Expand Down

0 comments on commit 6f22bb5

Please sign in to comment.