From 8cac2c3a81bff4ad100cb59ad0862d548ca08b0e Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Wed, 18 Oct 2023 11:09:08 +0800 Subject: [PATCH] bwc workflow Signed-off-by: Hailong Cui --- .github/workflows/bump-bwc.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump-bwc.yml b/.github/workflows/bump-bwc.yml index 0b82546c..1e652cdb 100644 --- a/.github/workflows/bump-bwc.yml +++ b/.github/workflows/bump-bwc.yml @@ -24,10 +24,10 @@ jobs: #installation_id: 22958780 installation_id: 42934585 + - uses: actions/checkout@v4 - name: Fetch Tag and Version Information - uses: actions/checkout@v4 run: | - if [ -z ${{ inputs.tag }} ]; then + if [ -n ${{ inputs.tag }} ]; then TAG=${{ inputs.tag }} else TAG=$(echo "${GITHUB_REF#refs/*/}") @@ -45,7 +45,7 @@ jobs: ref: main token: ${{ steps.github_app_token.outputs.token }} - - name: Bump bwc version to main branch + - name: Bump bwc version for main branch run: | echo Bumping bwc version to $NEXT_VERSION sed -i "s/def bwcVersionShort = \"$CURRENT_VERSION\"/def bwcVersionShort = \"$NEXT_VERSION\"/g" notifications/notifications/build.gradle