Skip to content

Commit 4e4ce8c

Browse files
committed
Handle multiple PRs and contributors in changelog generation + Simplify CR handling
1 parent c1123cf commit 4e4ce8c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/beta.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ jobs:
2121
run: |
2222
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
2323
git config --global user.name "github-actions[bot]"
24-
# The hash suffix will help identifying if the beta version is up-to-date
25-
- name: Add commit hash suffix to manifest version
26-
run: |
27-
sed -i "s/<Version number=\"\([^\"]*\)\"/<Version number=\"\1-$(git rev-parse --short HEAD)\"/g" manifest.xml
2824
- name: Generate Release notes
2925
run: |
3026
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
@@ -38,11 +34,18 @@ jobs:
3834
gh release create beta --title "Beta Release" --draft --generate-notes --notes-start-tag "$LATEST_TAG"
3935
gh release view beta > temp_change.md
4036
- name: Tweak changelogs
37+
id: tweak-changelogs
38+
continue-on-error: true
4139
run: |
4240
# Remove carriage returns to be able to run the script
4341
sed -i 's/\r$//' .github/tweak_changelogs.sh
4442
chmod +x .github/tweak_changelogs.sh
4543
.github/tweak_changelogs.sh beta
44+
# The hash suffix will help identifying if the beta version is up-to-date
45+
- name: Add commit hash suffix to manifest version
46+
if: steps.tweak-changelogs.outcome == 'success'
47+
run: |
48+
sed -i "s/<Version number=\"\([^\"]*\)\"/<Version number=\"\1-$(git rev-parse --short HEAD)\"/g" manifest.xml
4649
- name: Update manifest.xml
4750
run: python3 update_manifest.py --quiet --in-place
4851
- name: Push to beta branch

0 commit comments

Comments
 (0)