Skip to content

Commit

Permalink
Merge pull request #352 from warrensbox/fix/refactor-deployment
Browse files Browse the repository at this point in the history
Fix/refactor deployment
  • Loading branch information
warrensbox authored Apr 2, 2024
2 parents c9f4cd8 + ade8554 commit e96de4b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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'
Expand Down

0 comments on commit e96de4b

Please sign in to comment.