Skip to content

Commit

Permalink
Merge pull request #115 from ulucinar/handle-optional-version
Browse files Browse the repository at this point in the history
Accept : or ? in the Makefile export statement for TERRAFORM_PROVIDER_VERSION in native-provider-bump.yml Github workflow
  • Loading branch information
ulucinar authored May 25, 2023
2 parents b251790 + f96c38d commit 306a7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/native-provider-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Bump native provider version in Makefile
id: bump-mk
run: |
sed -i -E "s/^(export[[:space:]]+TERRAFORM_PROVIDER_VERSION[[:space:]]*:=[[:space:]]*).+/\1$(curl -sL 'https://registry.terraform.io/v1/providers/${{ inputs.provider-source }}' | jq -r .version)/" Makefile
sed -i -E "s/^(export[[:space:]]+TERRAFORM_PROVIDER_VERSION[[:space:]]*(:|\?)=[[:space:]]*).+/\1$(curl -sL 'https://registry.terraform.io/v1/providers/${{ inputs.provider-source }}' | jq -r .version)/" Makefile
echo "bumped=$(git diff --name-only Makefile)" >> $GITHUB_OUTPUT
echo "version=$(curl -sL 'https://registry.terraform.io/v1/providers/${{ inputs.provider-source }}' | jq -r .version)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 306a7e7

Please sign in to comment.