Skip to content

Commit

Permalink
Accept : or ? in the Makefile export statement for TERRAFORM_PROVIDER…
Browse files Browse the repository at this point in the history
…_VERSION in native-provider-bump.yml Github workflow

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
  • Loading branch information
ulucinar committed May 25, 2023
1 parent b251790 commit f96c38d
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 f96c38d

Please sign in to comment.