From 6d86a3dc13c49427ca8ed8dae90fa85cb83f1aa4 Mon Sep 17 00:00:00 2001 From: praveek Date: Thu, 30 Nov 2023 17:33:10 -0800 Subject: [PATCH] Rename script --- .github/workflows/maven-release.yml | 4 ++-- .github/workflows/update-version.yml | 8 ++++---- scripts/{versions.sh => version.sh} | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename scripts/{versions.sh => version.sh} (99%) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 0879f2322..17808da19 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -40,11 +40,11 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle - - name: Verify versions + - name: Verify version run: | set -eo pipefail echo Release version: ${{ github.event.inputs.tag }} - (./scripts/versions.sh -n ${{ github.event.inputs.extension }} -v ${{ github.event.inputs.tag }}) + (./scripts/version.sh -n ${{ github.event.inputs.extension }} -v ${{ github.event.inputs.tag }}) - name: Create GH Release id: create_release diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 639550963..44a5e1cdf 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -42,19 +42,19 @@ jobs: - if: ${{ github.event.inputs.core-version != '' }} name: Update Core Version - run: (sh ./scripts/versions.sh -u -n Core -v ${{ github.event.inputs.core-version }}) + run: (sh ./scripts/version.sh -u -n Core -v ${{ github.event.inputs.core-version }}) - if: ${{ github.event.inputs.identity-version != '' }} name: Update Identity Version - run: (sh ./scripts/versions.sh -u -n Identity -v ${{ github.event.inputs.identity-version }}) + run: (sh ./scripts/version.sh -u -n Identity -v ${{ github.event.inputs.identity-version }}) - if: ${{ github.event.inputs.lifecycle-version != '' }} name: Update Lifecycle Version - run: (sh ./scripts/versions.sh -u -n Lifecycle -v ${{ github.event.inputs.lifecycle-version }}) + run: (sh ./scripts/version.sh -u -n Lifecycle -v ${{ github.event.inputs.lifecycle-version }}) - if: ${{ github.event.inputs.signal-version != '' }} name: Update Signal Version - run: (sh ./scripts/versions.sh -u -n Signal -v ${{ github.event.inputs.signal-version }}) + run: (sh ./scripts/version.sh -u -n Signal -v ${{ github.event.inputs.signal-version }}) - name: Generate Commit Message shell: bash diff --git a/scripts/versions.sh b/scripts/version.sh similarity index 99% rename from scripts/versions.sh rename to scripts/version.sh index 1109e95cf..2a9a846a2 100755 --- a/scripts/versions.sh +++ b/scripts/version.sh @@ -1,7 +1,7 @@ #!/bin/bash # Make this script executable from terminal: -# chmod 755 update-versions.sh +# chmod 755 version.sh set -e # Any subsequent(*) commands which fail will cause the shell script to exit immediately ROOT_DIR=$(git rev-parse --show-toplevel)