-
-
Notifications
You must be signed in to change notification settings - Fork 3
19 lines (18 loc) · 1007 Bytes
/
wiki-on-edit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Wiki automated monitoring/antispam/changelog.
name: Wiki On Edit
on: gollum # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#gollum
jobs:
wiki_on_edit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Update Wiki Changelog
run: |
echo -e "- <code>${{github.event.repository.updated_at}}</code>\t<kbd title='${{github.event.pages[0].sha}}'>SHA</kbd>\t<img src='${{github.event.sender.avatar_url}}' width=20 height=20 /> [@${{github.actor}}](https://github.com/${{github.actor}} '${{github.event.sender.login}}') ${{github.event.pages[0].action}} [${{github.event.pages[0].page_name}}](${{github.event.pages[0].html_url}} '${{github.event.pages[0].title}}')." >> wiki_changelog_`date +%Y`.md
- name: Commit changes
uses: elstudio/actions-js-build/commit@v2
with:
commitMessage: Update wiki changelog [skip ci]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUSH_BRANCH: 'nim'