Skip to content

Commit

Permalink
ci: fix wrong syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Dec 13, 2022
1 parent 92314e4 commit 4ff2a21
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cut-off-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
release_branch="${{ env.RELEASE_BRANCH_PREFIX }}/${first}.${second}.${third}"
next_develop_version="${first}.${second}.$(($third + 1))dev"
echo "release_branch=${release_branch}"
echo "release_version=${release_version}"
echo "next_develop_version=${next_develop_version}"
echo "release_branch=${release_branch}" >> $GITHUB_OUTPUT
echo "release_version=${release_version}" >> $GITHUB_OUTPUT
echo "next_develop_version=${next_develop_version}" >> $GITHUB_OUTPUT
- name: Cut dependencies release branches
uses: actions/github-script@v6
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
git add ${{ env.PYTHON_VERSION_FILE }}
git commit --message "ci: cut release ${{ steps.calculate_branch_name_and_version.outputs.release_version }}"
echo "commit=$(git rev-parse HEAD)"
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
git push origin HEAD:refs/heads/${{ steps.calculate_branch_name_and_version.outputs.release_branch }}
- uses: actions/cache@v3
Expand All @@ -174,15 +174,15 @@ jobs:
git checkout '${{ github.event.repository.default_branch }}'
branch='bump-version-${{ steps.calculate_branch_name_and_version.outputs.next_develop_version }}'
echo "branch=${branch}"
echo "branch=${branch}" >> $GITHUB_OUTPUT
git checkout -b "${branch}"
sed -i "s/^__version__[ ]*=.*/__version__ = '${{ steps.calculate_branch_name_and_version.outputs.next_develop_version }}'/g" ${{ env.PYTHON_VERSION_FILE }}
git add ${{ env.PYTHON_VERSION_FILE }}
git commit --message "chore: Bump version to ${{ steps.calculate_branch_name_and_version.outputs.next_develop_version }}"
echo "commit=$(git rev-parse HEAD)"
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
git push origin HEAD:refs/heads/${branch}
- name: Create PR to 'develop'
Expand Down

0 comments on commit 4ff2a21

Please sign in to comment.