From 1431df00887a729234f7c2204295a73ada620e3f Mon Sep 17 00:00:00 2001 From: bischoffz Date: Thu, 20 Jun 2024 15:12:35 -0400 Subject: [PATCH] update workflow --- .github/workflows/release_build.yml | 51 ++--------------------------- 1 file changed, 2 insertions(+), 49 deletions(-) diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 8bf7964..7babd82 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -58,56 +58,9 @@ jobs: tag: "v${{ env.version }}" generateReleaseNotes: true skipIfReleaseExists: true - - update-gcm: - needs: release - runs-on: ubuntu-latest - permissions: - contents: write - env: - VERSION: ${{ needs.release.outputs.util_version }} - steps: - - name: Checkout GCM - uses: actions/checkout@v4 - with: - repository: HHS/ASPR-8 - token: ${{ secrets.GHA_BOT }} - - - name: Update Util version - run : | - echo "$VERSION" - sed -i "0,/.*<\/util.version>/s//$VERSION<\/util.version>/g" pom.xml - - - name: Increment GCM Version - run: | - current_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file pom.xml) - echo GCM Version: $current_version - parts=( ${current_version//./ } ) - bv=$((parts[2] + 1)) - new_version="${parts[0]}.${parts[1]}.${bv}" - echo New GCM Version: $new_version - sed -i "0,/.*<\/revision>/s//$new_version<\/revision>/g" pom.xml - - - name: Setup Git - run: | - git config --global user.name "github-actions" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - - - name: Make branch in GCM - run: | - git checkout -b update-util-to-$VERSION - git add pom.xml - git commit -m "Update util to $VERSION" - git push --set-upstream origin update-util-to-$VERSION - - - name: Make PR in GCM - run: | - gh pr create -R HHS/ASPR-8 -B main --fill - gh pr merge -m --auto - env: - GH_TOKEN: ${{ secrets.GHA_BOT }} - + update-taskit: + if: ${{ !endsWith(needs.release.outputs.util_version, '0') }} needs: release runs-on: ubuntu-latest permissions: