diff --git a/.github/workflows/generate_binaries_on_pr.yml b/.github/workflows/generate_binaries_on_pr.yml index b876634b8..8de00aa68 100644 --- a/.github/workflows/generate_binaries_on_pr.yml +++ b/.github/workflows/generate_binaries_on_pr.yml @@ -4,6 +4,13 @@ on: pull_request: branches: - master + paths: + - '**.go' + - '**.sum' + - '**.mod' + - 'GNUmakefile' + workflow_dispatch: + jobs: goreleaser: runs-on: ubuntu-latest diff --git a/scripts/terraform-examples.sh b/scripts/terraform-examples.sh index 326a594b0..3c626f788 100755 --- a/scripts/terraform-examples.sh +++ b/scripts/terraform-examples.sh @@ -13,8 +13,8 @@ do if [ -d $f ] then cd $f - VERSION_DIR=`grep -o '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*' outscale.tf` - INSTALL_DIR=$f/terraform.d/plugins/registry.terraform.io/outscale-dev/outscale/$VERSION_DIR/linux_amd64/ + VERSION_DIR=`grep -o '0\.[[:digit:]]*\.[[:digit:]]*' outscale.tf` + INSTALL_DIR=$f/terraform.d/plugins/registry.terraform.io/outscale/outscale/$VERSION_DIR/linux_amd64/ echo $INSTALL_DIR mkdir -p $INSTALL_DIR cp ../../terraform-provider-outscale $INSTALL_DIR diff --git a/scripts/tofu-examples.sh b/scripts/tofu-examples.sh index d269e1d70..0a8d51bd1 100755 --- a/scripts/tofu-examples.sh +++ b/scripts/tofu-examples.sh @@ -13,7 +13,7 @@ do if [ -d $f ] then cd $f - VERSION_DIR=`grep -o '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*' outscale.tf` + VERSION_DIR=`grep -o '0\.[[:digit:]]*\.[[:digit:]]*' outscale.tf` INSTALL_DIR=$f/terraform.d/providers/registry.opentofu.org/outscale/outscale/$VERSION_DIR/linux_amd64/ echo $INSTALL_DIR mkdir -p $INSTALL_DIR