Skip to content

Commit

Permalink
Merge the contents of the release-history directory instead of overwr…
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeage authored Apr 7, 2024
1 parent 5c3b945 commit bbe7337
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -855,19 +855,28 @@ jobs:
"pr_template": "- #{{TITLE}} ([PR ##{{NUMBER}}](#{{URL}}) by @#{{AUTHOR}})\n"
}
- name: Get the current contents of the docs repository
uses: actions/checkout@v4
with:
repository: icosa-foundation/open-brush-docs
path: open-brush-docs
ref: master
fetch-depth: 0
sparse-checkout: |
release-history/
- name: Create Changelog file
env:
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
run: |
mkdir -p changelog/
echo "$CHANGELOG" | tee changelog/automatic-changelog.md
echo "$CHANGELOG" | tee open-brush-docs/release-history/automatic-changelog.md
- name: Publish release notes
uses: cpina/[email protected]
env:
SSH_DEPLOY_KEY: ${{ secrets.OPENBRUSH_DOCS_SSH_DEPLOY_KEY }}
with:
source-directory: 'changelog/'
source-directory: 'open-brush-docs/release-history/'
target-directory: 'release-history/'
destination-github-username: 'icosa-foundation'
destination-repository-name: 'open-brush-docs'
Expand Down

0 comments on commit bbe7337

Please sign in to comment.