-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SapMachine #1544: Run wiki update task regularly
- Loading branch information
1 parent
17b5558
commit d856242
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Update Wiki | ||
|
||
description: | | ||
This action updates the wiki with the latest blog posts. | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Update Wiki | ||
run: | | ||
git clone https://github.com/SAP/SapMachine.wiki.git | ||
cd SapMachine.wiki | ||
pip3 install feedparser | ||
python3 scripts/update_blogs.py update > ../out | ||
cat ../out | ||
if grep -q changed ../out; then | ||
git commit -a -m "Update blog posts" | ||
git push | ||
echo "Blog post list updated" | ||
else | ||
echo "No updates" | ||
fi | ||
working-directory: . | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Runs update-wiki update actions every day at 20:00 UTC | ||
|
||
name: 'Wiki Update' | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 20 * * *' | ||
|
||
jobs: | ||
wiki: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout the JDK source' | ||
uses: actions/checkout@v4 | ||
- name: 'Update Wiki' | ||
uses: ./.github/actions/update-wiki | ||
|