From a64726213536dbb9710cc5ed47d40ea79fcab4c6 Mon Sep 17 00:00:00 2001 From: Michael Karlesky Date: Sat, 3 Aug 2024 20:53:00 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fixed=20ordering=20of=20Github?= =?UTF-8?q?=20Action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed unneeded steps - Placed new Git SHA file generation before the gem build! --- .github/workflows/main.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 60b90f28..a531ba1c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -231,14 +231,6 @@ jobs: with: submodules: recursive - - name: Set outputs - id: vars - # Create ${{ steps.vars.outputs.sha_short }} - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - - name: Check outputs - run: echo ${{ steps.vars.outputs.sha_short }} - # Set Up Ruby Tools - name: Set Up Ruby Tools uses: ruby/setup-ruby@v1 @@ -260,17 +252,17 @@ jobs: echo "short_ver=$(ruby ./lib/ceedling/version.rb)" >> $GITHUB_ENV echo "full_ver=$(ruby ./lib/ceedling/version.rb)-${{ env.sha_short }}" >> $GITHUB_ENV - # Build Gem - - name: Build Gem - run: | - gem build ceedling.gemspec - # Create Git Commit SHA file in root of checkout - name: Git Commit SHA file shell: bash run: | echo "${{ env.sha_short }}" > ${{ github.workspace }}/GIT_COMMIT_SHA + # Build Gem + - name: Build Gem + run: | + gem build ceedling.gemspec + # Create Unofficial Release - name: Create Pre-Release uses: actions/create-release@v1