From aa6e6954db27378e33cea0cfb76569d622d25a47 Mon Sep 17 00:00:00 2001 From: warrensbox Date: Tue, 2 Apr 2024 12:01:43 -0700 Subject: [PATCH 1/2] formatting issues --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49c6dc98..647e193f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,21 +9,21 @@ on: jobs: tfswitch-release: - name: Release runs-on: ubuntu-20.04 steps: - name: Check if provided input is valid - run: | - echo "Semantic Version: ${{ github.event.inputs.name }}" - VERSION=${{ github.event.inputs.name }} - if [ "$VERSION" != "major" ] && [ "$VERSION" != "minor" ] && [ "$VERSION" != "patch" ]; then - echo "Error: Provided input string must be 'major', 'minor', or 'patch'" - exit 1 - fi + run: | + echo "Semantic Version: ${{ github.event.inputs.name }}" + VERSION=${{ github.event.inputs.name }} + if [ "$VERSION" != "major" ] && [ "$VERSION" != "minor" ] && [ "$VERSION" != "patch" ]; then + echo "Error: Provided input string must be 'major', 'minor', or 'patch'" + exit 1 + fi # Checkout code from repo - - uses: actions/checkout@v4 + - name: Checkout repo + uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} # required for better experience using pre-releases fetch-depth: '0' From ade85543ce7c2dcd19972c905006ae4d17a35023 Mon Sep 17 00:00:00 2001 From: Warren Veerasingam <38867521+warrensbox@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:35:27 -0700 Subject: [PATCH 2/2] Update .github/workflows/release.yml Co-authored-by: George L. Yermulnik --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 647e193f..1274eebc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: if [ "$VERSION" != "major" ] && [ "$VERSION" != "minor" ] && [ "$VERSION" != "patch" ]; then echo "Error: Provided input string must be 'major', 'minor', or 'patch'" exit 1 - fi + fi # Checkout code from repo - name: Checkout repo