Skip to content

Commit

Permalink
[INFR] Restructured workflows (actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 15, 2024
1 parent 5e15192 commit 336aa8e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 27 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.changelog.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Update ChangeLog

on:
push:
tags:
- "v*"
paths-ignore:
- "**.md"
- ".github/**"
- "examples/**"
- "make/**"
workflow_run:
workflows:
- Release
types:
- completed
workflow_dispatch:

env:
Expand Down Expand Up @@ -64,4 +61,6 @@ jobs:
git add ./CHANGELOG.md
git commit -m "[DOC] Updated CHANGELOG.md"
git push
else
echo "No changes found. Skipping."
fi
16 changes: 0 additions & 16 deletions .github/workflows/build.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/build.wiki.yml
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:
Expand Down Expand Up @@ -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

0 comments on commit 336aa8e

Please sign in to comment.