Skip to content

Commit

Permalink
💚 Fixed ordering of Github Action
Browse files Browse the repository at this point in the history
- Removed unneeded steps
- Placed new Git SHA file generation before the gem build!
  • Loading branch information
mkarlesky committed Aug 4, 2024
1 parent 1339f90 commit a647262
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a647262

Please sign in to comment.