-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INFR] Restructured workflows (actions)
- Loading branch information
HorstOeko
committed
Dec 15, 2024
1 parent
5e15192
commit 336aa8e
Showing
3 changed files
with
19 additions
and
27 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
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 |
---|---|---|
|
@@ -202,22 +202,6 @@ jobs: | |
name: Build log artifacts for ubuntu-24.04 PHP 8.4 (Release) | ||
path: build/logs | ||
|
||
- name: Update Wiki | ||
continue-on-error: true | ||
run: | | ||
php -f make/genmethoddocs.php | ||
git clone https://[email protected]/horstoeko/zugferd.wiki.git wiki | ||
mv -f make/*.md wiki | ||
cd wiki | ||
git config user.name "HorstOeko" | ||
git config user.email "[email protected]" | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git add -A | ||
git commit -m "[DOC] Automatic update of the wiki" | ||
git push | ||
fi | ||
cd .. | ||
- name: Make Release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
|
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
name: Update Wiki | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Release | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
env: | ||
|
@@ -48,6 +53,10 @@ jobs: | |
cd wiki | ||
git config user.name "HorstOeko" | ||
git config user.email "[email protected]" | ||
git add -A | ||
git commit -m "Automatische Aktualisierung des Wikis" | ||
git push | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git add -A | ||
git commit -m "Automatische Aktualisierung des Wikis" | ||
git push | ||
else | ||
echo "No changes found. Skipping." | ||
fi |