-
Notifications
You must be signed in to change notification settings - Fork 31
35 lines (35 loc) · 1.09 KB
/
sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Auto sync-up NSM site with project boards
on:
schedule:
- cron: '0 0 * * 0'
jobs:
build-and-commit:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.20.8
- name: build & run fetchnotes
run: make pull-release-notes
env:
GITHUB_TOKEN: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}
- name: Create commit message
run: |
echo Sync up NSM site with project boards $(date) > /tmp/commit-message
echo "Commit Message:"
cat /tmp/commit-message
- name: Push update to the
run: |
git config --global user.email "[email protected]"
git config --global user.name "NSMBot"
git add public/docs/releases
if ! [ -n "$(git diff --cached --exit-code)" ]; then
echo site is up to date
exit 0;
fi
git commit -s -F /tmp/commit-message
git push -f origin update/${{ github.repository }}