Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 committed Jan 25, 2025
1 parent 3b8bbbf commit 83f0e16
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
# status: draft
# releaseName: ${{ env.VERSION_NAME }}

bump-verion:
bump-version:
name: Bump version in pubspec.yaml
runs-on: ubuntu-latest
needs: [get-version]
Expand All @@ -140,19 +140,18 @@ jobs:
- run: flutter clean
- run: flutter pub get

- name: Bump version in pubspec.yaml
run: dart run pub_version_plus:main build

- name: Fetch latest branch
- name: Fetch latest branch and rebase
run: |
git fetch origin ${{ github.head_ref }}
git rebase origin/${{ github.head_ref }}
- name: Bump version in pubspec.yaml
run: dart run pub_version_plus:main build

- name: Commit version bump
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git checkout ${{ github.head_ref }}
git add pubspec.yaml
git commit -m "Bump build version"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git ${{ github.head_ref }}

0 comments on commit 83f0e16

Please sign in to comment.