-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.3 KB
/
generate-opensource-interface.yml
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
36
37
38
39
40
41
42
43
44
name: opensource-heartbeat
on:
# nightly at 4:30am
schedule:
- cron: 5 4 * * sun
jobs:
Update:
name: Generate Open Source HeartBeat Interface
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Open Source Heartbeat Action
uses: rseng/opensource-heartbeat-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
events: Issues,IssuesEvent,IssueCommentEvent
token: ${{ secrets.GITHUB_TOKEN }}
- name: Push to main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
printf "GitHub Actor: ${GITHUB_ACTOR}\n"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git branch
git add docs/*
git add docs/_events/*
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git status
if git diff-index --quiet HEAD --; then
printf "No changes\n"
else
printf "Changes\n"
git commit -a -m "Automated deployment to update events $(date '+%Y-%m-%d')"
git push origin main
fi