-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,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/[email protected] | ||
with: | ||
release_version: ${{ env.NEW_VERSION }} | ||
config_file: changelog-ci-config.json | ||
|
||
# Step 14: Output the version | ||
- name: Use the version | ||
run: | | ||
|
@@ -195,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 '(?<=<version>)[^<]+' 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/[email protected] | ||
with: | ||
persist-credentials: true | ||
release_version: ${{ env.NEW_VERSION }} | ||
config_file: changelog-ci-config.json |