Skip to content

Commit

Permalink
Some kind of work around from here: actions/runner#665 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mearns committed Nov 20, 2020
1 parent b39f229 commit 2eed7c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/determine-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ runs:
steps:
- name: Determine version
shell: bash
env:
BASE_VERSION: ${{ inputs.base-version }}
run: |2
BASE_VERSION="${{ inputs.base-version }}"
echo "Starting with base version ${BASE_VERSION}"
echo "Using github run id: ${GITHUB_RUN_ID}"
echo "Using github ref: ${GITHUB_REF}"
MAJOR_VERSION=$( echo "$BASE_VERSION" | sed -E 's/([0-9]+)\..*/\1/' )
MINOR_VERSION=$( echo "$BASE_VERSION" | sed -E 's/[0-9]+\.([0-9]+)\..*/\1/' )
PATCH_VERSION=$( echo "$BASE_VERSION" | sed -E 's/[0-9]+\.[0-9]+\.([0-9]+).*/\1/' )
Expand Down

0 comments on commit 2eed7c9

Please sign in to comment.