From d762136e0b31f9cfe40bc2327330bc3f30be8055 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 13 Aug 2025 07:46:02 +0200 Subject: [PATCH] Clean up action. --- .github/workflows/release.yml | 113 +++------------------------------- 1 file changed, 10 insertions(+), 103 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 494617402d..ec6d04d575 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -242,111 +242,18 @@ jobs: env: FIREFLY_III_ROOT: /github/workspace GH_TOKEN: "" + - name: Generate release description + id: release-description + uses: JC5/firefly-iii-dev@main + with: + action: "ff3:generate-release-notes firefly-iii ${{ github.event.inputs.version }}" + output: 'output' + env: + FIREFLY_III_ROOT: /github/workspace + GH_TOKEN: "" - name: Describe new release run: | - - # describe the development release. - if [[ "develop" == "$version" ]]; then - echo 'Describe the latest develop release' - rm -f output.txt - touch output.txt - sudo chown -R runner:docker output.txt - echo "Weekly development release of Firefly III with the latest fixes, translations and features. Docker users can find this release under the \`develop\` tag." >> output.txt - echo "" >> output.txt - echo "This release was created on **$(date +'%Y-%m-%d %H:%M')** and may contain unexpected bugs. Data loss is rare but is not impossible. The releases are signed, and you can verify them using the [Firefly III releases PGP key](https://docs.firefly-iii.org/explanation/more-information/signatures/)." >> output.txt - echo "" >> output.txt - echo "* Please read the installation instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/), [Portainer](https://docs.firefly-iii.org/how-to/firefly-iii/installation/portainer/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/installation/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/installation/self-managed/)" >> output.txt - echo "* Or read the upgrade instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/docker/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/self-managed/)" >> output.txt - echo "" >> output.txt - echo ":warning: Please be careful with this pre-release, as it may not work as expected." >> output.txt - - # donations! - echo '' >> output.txt - echo '### Support Firefly III' >> output.txt - echo 'Did you know you can support the development of Firefly III? You can donate in many ways, like GitHub Sponsors or Patreon. For more information, please [follow this link](https://bit.ly/donate-to-Firefly-III) for more information.' >> output.txt - echo '' >> output.txt - fi - # describe a branch release - if [[ "$version" == branch* ]]; then - echo 'Describe a branch release' - rm -f output.txt - touch output.txt - sudo chown -R runner:docker output.txt - echo "Irregular BRANCH release of Firefly III. This release contains specific features or changes. Docker users can find this release under the \`$version\` tag." >> output.txt - echo "" >> output.txt - echo "This release was created on **$(date +'%Y-%m-%d %H:%M')** and may contain unexpected bugs. Data loss is rare but is not impossible. The releases are signed, and you can verify them using the [Firefly III releases PGP key](https://docs.firefly-iii.org/explanation/more-information/signatures/)." >> output.txt - echo "" >> output.txt - echo "* Please read the installation instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/), [Portainer](https://docs.firefly-iii.org/how-to/firefly-iii/installation/portainer/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/installation/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/installation/self-managed/)" >> output.txt - echo "* Or read the upgrade instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/docker/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/self-managed/)" >> output.txt - echo "" >> output.txt - echo ":warning: Please be careful with this branch pre-release, as it may not work as expected." >> output.txt - fi - # describe the main release - if [[ "develop" != "$version" ]] && [[ "$version" != branch* ]] && [[ "$version" != *alpha* ]] && [[ "$version" != *beta* ]]; then - echo 'Describe the latest release' - sudo chown -R runner:docker output.txt - - # the changelog is in output.txt - mv output.txt output2.txt - - touch output.txt - echo '' >> output.txt - echo "Welcome to release $version of Firefly III. It contains the the latest fixes, translations and features. Docker users can find this release under the \`latest\` tag." >> output.txt - echo '' >> output.txt - - # add changelog to file. - cat output2.txt >> output.txt - echo '' >> output.txt - rm -f output2.txt - - echo '### Instructions' >> output.txt - echo '' >> output.txt - echo "* Installation instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/), [Portainer](https://docs.firefly-iii.org/how-to/firefly-iii/installation/portainer/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/installation/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/installation/self-managed/)" >> output.txt - echo "* Or read the upgrade instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/docker/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/self-managed/)" >> output.txt - echo "* The releases are signed, and you can verify them using the [Firefly III releases PGP key](https://docs.firefly-iii.org/explanation/more-information/signatures/)." >> output.txt - - # donations! - echo '' >> output.txt - echo '### Support Firefly III' >> output.txt - echo 'Did you know you can support the development of Firefly III? You can donate in many ways, like GitHub Sponsors or Patreon. For more information, please [follow this link](https://bit.ly/donate-to-Firefly-III) for more information.' >> output.txt - echo '' >> output.txt - fi - - # describe alpha release - if [[ "$version" == *alpha* ]]; then - echo 'Describe an ALPHA release' - rm -f output.txt - touch output.txt - sudo chown -R runner:docker output.txt - echo "Very early ALPHA release of Firefly III. This release contains specific features or changes. Docker users can find this release under the \`$version\` tag." >> output.txt - echo '' >> output.txt - echo "This release was created on **$(date +'%Y-%m-%d %H:%M')** and may contain unexpected bugs. Data loss is rare but is not impossible. The releases are signed, and you can verify them using the [Firefly III releases PGP key](https://docs.firefly-iii.org/explanation/more-information/signatures/)." >> output.txt - echo '' >> output.txt - echo '### Instructions' >> output.txt - echo '' >> output.txt - echo "* Installation instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/), [Portainer](https://docs.firefly-iii.org/how-to/firefly-iii/installation/portainer/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/installation/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/installation/self-managed/)" >> output.txt - echo "* Or read the upgrade instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/docker/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/self-managed/)" >> output.txt - echo "* The releases are signed, and you can verify them using the [Firefly III releases PGP key](https://docs.firefly-iii.org/explanation/more-information/signatures/)." >> output.txt - - fi - - # describe beta release - if [[ "$version" == *beta* ]]; then - echo 'Describe a BETA release' - rm -f output.txt - touch output.txt - sudo chown -R runner:docker output.txt - echo "Very early BETA release of Firefly III. This release contains specific features or changes. Docker users can find this release under the \`$version\` tag." >> output.txt - echo '' >> output.txt - echo "This release was created on **$(date +'%Y-%m-%d %H:%M')** and may contain unexpected bugs. Data loss is rare but is not impossible. The releases are signed, and you can verify them using the [Firefly III releases PGP key](https://docs.firefly-iii.org/explanation/more-information/signatures/)." >> output.txt - echo '' >> output.txt - echo '### Instructions' >> output.txt - echo '' >> output.txt - echo "* Installation instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/), [Portainer](https://docs.firefly-iii.org/how-to/firefly-iii/installation/portainer/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/installation/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/installation/self-managed/)" >> output.txt - echo "* Or read the upgrade instructions for [Docker](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/docker/), [Kubernetes](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/kubernetes/) or [self-managed servers](https://docs.firefly-iii.org/how-to/firefly-iii/upgrade/self-managed/)" >> output.txt - echo "* The releases are signed, and you can verify them using the [Firefly III releases PGP key](https://docs.firefly-iii.org/explanation/more-information/signatures/)." >> output.txt - - fi + echo "Should have nothing to do here, but just in case." env: version: ${{ github.event_name == 'schedule' && 'develop' || github.event.inputs.version }} - name: Merge all into working branch