Skip to content

Commit a711ce1

Browse files
committed
fix indent
1 parent bc5c801 commit a711ce1

1 file changed

Lines changed: 24 additions & 22 deletions

File tree

.github/workflows/release_central.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
description: "The version to release. Must start with the one in config/version.txt"
1111
required: true
1212
prev_version:
13-
description: "The previous version, used in the release git diff."
14-
required: true
13+
description: "The previous version, used in the release git diff."
14+
required: true
1515
next_version:
1616
description: "The next version, used to update the tags."
1717
required: true
@@ -91,26 +91,28 @@ jobs:
9191
path: elasticsearch-java
9292

9393
- run: |
94-
cd elasticsearch-java
95-
git config user.name "$GIT_USER"
96-
git config user.email "$GIT_MAIL"
97-
git tag v${{ inputs.version }}
98-
git push origin tag v${{ inputs.version }}
99-
echo ${{ inputs.next_version }} > config/version.txt
100-
sed -i '/static final String VERSION/s/".*"/"${{ inputs.next_version }}"/' java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java
101-
# git commit -m "bump version" -a
102-
# git push origin ${{ inputs.branch }}
103-
# temporarily pushing bump version changes to PR until support for ephemeral token is complete
104-
target_branch="version-bump-to-${{ inputs.next_version }}"
105-
git checkout -B "$target_branch"
106-
git add -A
107-
git commit -m "bump version"
108-
git push --force origin "$target_branch"
109-
gh pr create \
110-
--head "target_branch" \
111-
--base "${{ inputs.branch }}" \
112-
--title "Bump version from ${{ inputs.prev_version }} to ${{ inputs.next_version }}" \
113-
--body "As titled."
94+
cd elasticsearch-java
95+
git config user.name "$GIT_USER"
96+
git config user.email "$GIT_MAIL"
97+
git tag v${{ inputs.version }}
98+
git push origin tag v${{ inputs.version }}
99+
echo ${{ inputs.next_version }} > config/version.txt
100+
sed -i '/static final String VERSION/s/".*"/"${{ inputs.next_version }}"/' java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java
101+
git commit -m "bump version" -a
102+
git push origin ${{ inputs.branch }}
103+
# git commit -m "bump version" -a
104+
# git push origin ${{ inputs.branch }}
105+
# temporarily pushing bump version changes to PR until support for ephemeral token is complete
106+
target_branch="version-bump-to-${{ inputs.next_version }}"
107+
git checkout -B "$target_branch"
108+
git add -A
109+
git commit -m "bump version"
110+
git push --force origin "$target_branch"
111+
gh pr create \
112+
--head "target_branch" \
113+
--base "${{ inputs.branch }}" \
114+
--title "Bump version from ${{ inputs.prev_version }} to ${{ inputs.next_version }}" \
115+
--body "As titled."
114116

115117
- name: Creates new github release with version ${{ inputs.version }}
116118
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)