Skip to content

Commit

Permalink
Fix automatic_release.yml (Attempt 8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Jul 6, 2024
1 parent f19008a commit e80466a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/automatic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,24 @@ 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: |
export NEW_BRANCH="auto-update-$(date +'%Y%m%d%H%M%S')"
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
Expand Down

0 comments on commit e80466a

Please sign in to comment.