From e80466abb03dd65008006bc423b7962c0d0dc004 Mon Sep 17 00:00:00 2001 From: iliyangermanov Date: Sat, 6 Jul 2024 23:45:53 +0300 Subject: [PATCH] Fix automatic_release.yml (Attempt 8) --- .github/workflows/automatic_release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/automatic_release.yml b/.github/workflows/automatic_release.yml index ba955d0d92..7649706935 100644 --- a/.github/workflows/automatic_release.yml +++ b/.github/workflows/automatic_release.yml @@ -32,7 +32,7 @@ jobs: sed -i "s/version-code = \".*\"/version-code = \"$NEW_VERSION_CODE\"/" $VERSION_FILE echo "NEW_VERSION_NAME=$CURRENT_DATE" >> $GITHUB_ENV - echo "NEW_VERSION_CODE=$NEW_VERSION_CODE" >> $GITHUB_ENV + echo "NEW_VERSION_CODE=$NEW_VERSION_CODE" >> $GITHUB_ENV - name: Create a new branch, commit and push changes run: | @@ -40,13 +40,16 @@ jobs: git checkout -b $NEW_BRANCH git add gradle/libs.versions.toml git commit -m "Automatic release - v${{ env.NEW_VERSION_NAME }} (${{ env.NEW_VERSION_CODE }})" + git show --stat git push origin $NEW_BRANCH echo "NEW_BRANCH=$NEW_BRANCH" >> $GITHUB_ENV - - name: Debug - Show branches + - name: Debug - Show branches and commits run: | git branch -a - git log --oneline + git log --oneline --graph --decorate + git diff HEAD^ HEAD + ls -l gradle/libs.versions.toml - name: Create a Pull Request uses: peter-evans/create-pull-request@v5