From 814e1ad3cfa468b1241838be47ef01df09e4d5f3 Mon Sep 17 00:00:00 2001 From: Remko Date: Tue, 17 Dec 2024 09:43:34 +0100 Subject: [PATCH 1/8] updated workflow --- .github/workflows/release-workflow.yaml | 43 +++++++++++++++++++------ 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-workflow.yaml b/.github/workflows/release-workflow.yaml index c40b688..d869733 100644 --- a/.github/workflows/release-workflow.yaml +++ b/.github/workflows/release-workflow.yaml @@ -21,6 +21,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + ssh-key: ${{ secrets.DEPLOY_KEY }} - name: Set app env run: | @@ -44,7 +45,7 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git commit -am "Bump version to ${{ env.NEW_VERSION }}" + git commit -am "Bump version to ${{ env.NEW_VERSION }}" -m "[skip ci]" git push # Step 1: Prepare the signing certificate and key @@ -140,14 +141,6 @@ jobs: description=$(jq -r '.description' <(curl -s https://api.github.com/repos/${{ github.repository }})) echo "REPO_DESCRIPTION=$description" >> $GITHUB_ENV - # Step 13: Run Changelog CI - - name: Run Changelog CI - if: github.ref == 'refs/heads/main' - uses: saadmk11/changelog-ci@v1.1.2 - with: - release_version: ${{ env.NEW_VERSION }} - config_file: changelog-ci-config.json - # Step 14: Output the version - name: Use the version run: | @@ -194,3 +187,35 @@ jobs: tar -tvf nextcloud-release.tar.gz echo "info.xml contents:" tar -xOf nextcloud-release.tar.gz ${{ env.APP_NAME }}/appinfo/info.xml + + update-changelog: + runs-on: ubuntu-latest + steps: + + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set app env + run: | + echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV + + - name: Get current version and increment + id: increment_version + run: | + current_version=$(grep -oP '(?<=)[^<]+' appinfo/info.xml) + IFS='.' read -ra version_parts <<< "$current_version" + ((version_parts[2]++)) + new_version="${version_parts[0]}.${version_parts[1]}.${version_parts[2]}" + echo "NEW_VERSION=$new_version" >> $GITHUB_ENV + echo "new_version=$new_version" >> $GITHUB_OUTPUT + + # Step 13: Run Changelog CI + - name: Run Changelog CI + if: github.ref == 'refs/heads/main' + uses: saadmk11/changelog-ci@v1.1.2 + with: + persist-credentials: true + release_version: ${{ env.NEW_VERSION }} + config_file: changelog-ci-config.json From 7d75e1a6fd8bbc37b22042849969428f19570199 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 3 Jan 2025 07:55:02 +0000 Subject: [PATCH 2/8] Bump version to 0.1.34 --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index d013b1f..72a4873 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenRegister/.github/issues/new/choose) Create a [feature request](https://github.com/OpenRegister/.github/issues/new/choose) ]]> - 0.1.33 + 0.1.34 agpl Conduction OpenRegister From 5312f387bdfeaaf5607d27328114a4a5ea101d36 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 6 Jan 2025 09:11:55 +0000 Subject: [PATCH 3/8] Bump version to 0.1.35 [skip ci] --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 72a4873..e59b957 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenRegister/.github/issues/new/choose) Create a [feature request](https://github.com/OpenRegister/.github/issues/new/choose) ]]> - 0.1.34 + 0.1.35 agpl Conduction OpenRegister From e26cc9e055c4dd65606621f87c6bb7fa384f9e3c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 16 Jan 2025 10:21:54 +0000 Subject: [PATCH 4/8] Bump version to 0.1.36 [skip ci] --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index e59b957..c738f6d 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenRegister/.github/issues/new/choose) Create a [feature request](https://github.com/OpenRegister/.github/issues/new/choose) ]]> - 0.1.35 + 0.1.36 agpl Conduction OpenRegister From beee1ea47f6de3f66b5d6e36e649f66970bd0e12 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 16 Jan 2025 12:52:05 +0000 Subject: [PATCH 5/8] Bump version to 0.1.37 [skip ci] --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index c738f6d..948eb7c 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenRegister/.github/issues/new/choose) Create a [feature request](https://github.com/OpenRegister/.github/issues/new/choose) ]]> - 0.1.36 + 0.1.37 agpl Conduction OpenRegister From 7ab3ceeeb990fc270153d65cba051af36ec81251 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 17 Jan 2025 10:04:08 +0000 Subject: [PATCH 6/8] Bump version to 0.1.38 [skip ci] --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 948eb7c..8f7c790 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenRegister/.github/issues/new/choose) Create a [feature request](https://github.com/OpenRegister/.github/issues/new/choose) ]]> - 0.1.37 + 0.1.38 agpl Conduction OpenRegister From 04ea8b4f4ff6cde14213bc4a397a0270e3cea853 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 17 Jan 2025 10:54:12 +0000 Subject: [PATCH 7/8] Bump version to 0.1.39 [skip ci] --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 8f7c790..1f911eb 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenRegister/.github/issues/new/choose) Create a [feature request](https://github.com/OpenRegister/.github/issues/new/choose) ]]> - 0.1.38 + 0.1.39 agpl Conduction OpenRegister From d31f52b50c5336cd7caff226d690bf877b7785aa Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 17 Jan 2025 13:32:14 +0000 Subject: [PATCH 8/8] Bump version to 0.1.40 [skip ci] --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 1f911eb..6d7e7de 100755 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Create a [bug report](https://github.com/OpenRegister/.github/issues/new/choose) Create a [feature request](https://github.com/OpenRegister/.github/issues/new/choose) ]]> - 0.1.39 + 0.1.40 agpl Conduction OpenRegister