diff --git a/.github/workflows/build.changelog.yml b/.github/workflows/build.changelog.yml index de8eaba..acebc67 100644 --- a/.github/workflows/build.changelog.yml +++ b/.github/workflows/build.changelog.yml @@ -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: @@ -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 diff --git a/.github/workflows/build.release.yml b/.github/workflows/build.release.yml index 5d60909..23115b3 100644 --- a/.github/workflows/build.release.yml +++ b/.github/workflows/build.release.yml @@ -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://$GH_PAT@github.com/horstoeko/zugferd.wiki.git wiki - mv -f make/*.md wiki - cd wiki - git config user.name "HorstOeko" - git config user.email "horstoeko@erling.com.de" - 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: diff --git a/.github/workflows/build.wiki.yml b/.github/workflows/build.wiki.yml index ddf6ece..d2d55ca 100644 --- a/.github/workflows/build.wiki.yml +++ b/.github/workflows/build.wiki.yml @@ -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 "horstoeko@erling.com.de" - 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