Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SapMachine #1544: Update wiki action #1630

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions .github/actions/update-wiki/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Update Wiki

description: |
This action updates the wiki with the latest blog posts.
description: 'This action updates the wiki with the latest blog posts.'

runs:
using: composite
Expand All @@ -11,14 +10,6 @@ runs:
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
python3 scripts/update_blogs.py clone
working-directory: .
shell: bash
5 changes: 2 additions & 3 deletions .github/workflows/wiki.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Runs update-wiki update actions every day at 20:00 UTC
# Runs update-wiki action every day at 20:00 UTC

name: 'Wiki Update'

Expand All @@ -11,8 +11,7 @@ jobs:
wiki:
runs-on: ubuntu-latest
steps:
- name: 'Checkout the JDK source'
- name: 'Checkout SapMachine source'
uses: actions/checkout@v4
- name: 'Update Wiki'
uses: ./.github/actions/update-wiki

Loading