Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/theoplayer-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,39 @@ jobs:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 1
- name: Configure Git user
# language=bash
run: |
git config user.name 'theoplayer-bot[bot]'
git config user.email '873105+theoplayer-bot[bot]@users.noreply.github.com'
- name: Check if pull request already exists
id: check_pr_exists
shell: bash
# language=bash
run: |
pr_count=$(gh pr list --base main --head $GITHUB_REF_NAME --state open --limit 1 --json number --jq length)
if ((pr_count > 0)); then
echo "exists=true" >> "$GITHUB_OUTPUT"
fi
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Replace absolute links in changelog
if: ${{ !steps.check_pr_exists.outputs.exists }}
shell: bash
# Replace absolute links to https://optiview.dolby.com/docs/ with relative links
# - Only change Markdown links, e.g. [title](url)
# - Don't change versioned links
# language=bash
run: |
sed -i -E 's|\(https://optiview.dolby.com/docs/(theoplayer/[^v])|\(/\1|g' theoplayer/changelog.md
if ! git diff --quiet; then
git add theoplayer/changelog.md
git commit -m "Replace absolute links in changelog"
git push origin
fi
- name: Create pull request
if: ${{ !steps.check_pr_exists.outputs.exists }}
shell: bash
# language=bash
run: |
theoplayer_version=$(<theoplayer/version.txt)
gh pr create \
Expand Down
10,515 changes: 12 additions & 10,503 deletions theoplayer/changelog.md

Large diffs are not rendered by default.

Loading
Loading