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 ea50b43 commit eb73a44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/check-for-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ jobs:
owner: Snowflake-Labs
repo: terraform-provider-snowflake
excludes: prerelease, draft

- 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"
shell: bash

- name: Print Release Info
run: |
Expand Down

0 comments on commit eb73a44

Please sign in to comment.