Skip to content

Commit

Permalink
Update check-for-releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcazalas authored Oct 7, 2023
1 parent eb73a44 commit 0c9d030
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/check-for-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ jobs:
- name: Get Your Repository's Version
id: get-version
run: |
# Use grep and awk to extract the version from the file
version=$(grep -oE 'version: "[0-9]+\.[0-9]+\.[0-9]+"' src/snowflake_resources/snowflake_provider.ts | awk -F'"' '{print $2}')
echo "::set-output name=MY_VERSION::$version"
cat src/snowflake_resources/snowflake_provider.ts # Check file contents
version=$(grep -oE 'version: "[0-9]+\.[0-9]+\.[0-9]+"' src/snowflake_resources/snowflake_provider.ts | awk -F'"' '{print $2}')
echo "Extracted Version: $version"
echo "::set-output name=MY_VERSION::$version"
shell: bash

- name: Print Release Info
Expand Down

0 comments on commit 0c9d030

Please sign in to comment.