Skip to content

Commit ca4a168

Browse files
Split THEOplayer changelog by major version (#561)
1 parent a85dfbb commit ca4a168

7 files changed

Lines changed: 3213 additions & 39211 deletions

File tree

.github/workflows/theoplayer-release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,39 @@ jobs:
1919
token: ${{ steps.app-token.outputs.token }}
2020
fetch-depth: 1
2121
- name: Configure Git user
22+
# language=bash
2223
run: |
2324
git config user.name 'theoplayer-bot[bot]'
2425
git config user.email '873105+theoplayer-bot[bot]@users.noreply.github.com'
2526
- name: Check if pull request already exists
2627
id: check_pr_exists
2728
shell: bash
29+
# language=bash
2830
run: |
2931
pr_count=$(gh pr list --base main --head $GITHUB_REF_NAME --state open --limit 1 --json number --jq length)
3032
if ((pr_count > 0)); then
3133
echo "exists=true" >> "$GITHUB_OUTPUT"
3234
fi
3335
env:
3436
GH_TOKEN: ${{ steps.app-token.outputs.token }}
37+
- name: Replace absolute links in changelog
38+
if: ${{ !steps.check_pr_exists.outputs.exists }}
39+
shell: bash
40+
# Replace absolute links to https://optiview.dolby.com/docs/ with relative links
41+
# - Only change Markdown links, e.g. [title](url)
42+
# - Don't change versioned links
43+
# language=bash
44+
run: |
45+
sed -i -E 's|\(https://optiview.dolby.com/docs/(theoplayer/[^v])|\(/\1|g' theoplayer/changelog.md
46+
if ! git diff --quiet; then
47+
git add theoplayer/changelog.md
48+
git commit -m "Replace absolute links in changelog"
49+
git push origin
50+
fi
3551
- name: Create pull request
3652
if: ${{ !steps.check_pr_exists.outputs.exists }}
3753
shell: bash
54+
# language=bash
3855
run: |
3956
theoplayer_version=$(<theoplayer/version.txt)
4057
gh pr create \

theoplayer/changelog.md

Lines changed: 12 additions & 10503 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)