summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-02-10 15:35:19 +0200
committerGitHub <noreply@github.com>2022-02-10 15:35:19 +0200
commit195880a310a068f370eb71ad59fc8240e308e00d (patch)
tree5c9fa14f731415646cd1ca7ddda00c274e65ef16 /.github
parentae043a6031d7d569511912f4e9234d0395ee9e40 (diff)
downloadredis-py-195880a310a068f370eb71ad59fc8240e308e00d.tar.gz
add changes workflow (#1913)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-changes.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/update-changes.yaml b/.github/workflows/update-changes.yaml
new file mode 100644
index 0000000..5cffb94
--- /dev/null
+++ b/.github/workflows/update-changes.yaml
@@ -0,0 +1,24 @@
+name: Update CHANGES File
+on:
+ push:
+ paths-ignore:
+ - 'CHANGES'
+ branches:
+ - master
+jobs:
+ update-changes:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@master
+ with:
+ persist-credentials: false
+ fetch-depth: 0
+ - name: Update CHANGES file
+ run: |
+ sed -i '1s/^/* ${{ github.event.head_commit.message }}. Thanks @${{ github.actor }}\n/' changes
+ - name: Commit & Push changes
+ uses: actions-js/push@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ branch: master
+ message: ${{ github.event.head_commit.message }} \ No newline at end of file