Skip to content

Commit

Permalink
Use the dropseed/changerelease action to sync changelog to GitHub Rel…
Browse files Browse the repository at this point in the history
…eases (#6843)

* Create changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Update changerelease.yml

* Add workflow permissions
  • Loading branch information
davegaeddert authored Jul 7, 2021
1 parent e972aff commit e885a47
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/changerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: changerelease
on:
workflow_dispatch: {}
push:
paths: [Changelog.rst]
branches: [master]
tags: ["*"]

permissions:
contents: write

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://pandoc/core:2.14
with:
args: "Changelog.rst -f rst -t markdown -o CR_CHANGELOG.md"
- name: "Clean up markdown"
run: |
# https://stackoverflow.com/a/1252191/1110798
cat CR_CHANGELOG.md
sed -i -e ':a' -e 'N' -e '$!ba' -e 's/release-date\n\n: /Release date: /g' CR_CHANGELOG.md
sed -i -e ':a' -e 'N' -e '$!ba' -e 's/release-by\n\n: /Release by: /g' CR_CHANGELOG.md
cat CR_CHANGELOG.md
- uses: dropseed/changerelease@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog: CR_CHANGELOG.md
remote_changelog: false
limit: -1

0 comments on commit e885a47

Please sign in to comment.