mirror of https://github.com/dapr/java-sdk.git
Fix create release script. (#1233)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
This commit is contained in:
parent
7994fe8997
commit
54f3997bd1
|
@ -105,6 +105,7 @@ if [ "$VARIANT" = "" ]; then
|
||||||
git clean -xdf
|
git clean -xdf
|
||||||
echo "Updating docs in master branch ..."
|
echo "Updating docs in master branch ..."
|
||||||
git checkout master
|
git checkout master
|
||||||
|
git fetch origin
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
git cherry-pick --strategy=recursive -X theirs $RELEASE_TAG
|
git cherry-pick --strategy=recursive -X theirs $RELEASE_TAG
|
||||||
git push origin master
|
git push origin master
|
||||||
|
|
|
@ -33,6 +33,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.DAPR_BOT_TOKEN }}
|
token: ${{ secrets.DAPR_BOT_TOKEN }}
|
||||||
|
persist-credentials: false
|
||||||
- name: Set up OpenJDK ${{ env.JDK_VER }}
|
- name: Set up OpenJDK ${{ env.JDK_VER }}
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
|
@ -43,9 +44,13 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install pcre2-utils
|
sudo apt-get install pcre2-utils
|
||||||
- name: Create release branch and tag
|
- name: Create release branch and tag
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git config user.email "daprweb@microsoft.com"
|
git config user.email "daprweb@microsoft.com"
|
||||||
git config user.name "Dapr Bot"
|
git config user.name "Dapr Bot"
|
||||||
|
# Update origin with token
|
||||||
|
git remote set-url origin https://x-access-token:${{ secrets.DAPR_BOT_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
|
||||||
# Copy first to allow automation to use the latest version and not the release branch's version.
|
# Copy first to allow automation to use the latest version and not the release branch's version.
|
||||||
cp -R ./.github/scripts ${RUNNER_TEMP}/
|
cp -R ./.github/scripts ${RUNNER_TEMP}/
|
||||||
${RUNNER_TEMP}/scripts/create-release.sh ${{ inputs.rel_version }}
|
${RUNNER_TEMP}/scripts/create-release.sh ${{ inputs.rel_version }}
|
||||||
|
|
Loading…
Reference in New Issue