Skip to content

Commit

Permalink
Fix exemple tests and binary greneration action
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Oct 1, 2024
1 parent 67c5e7f commit 8aa45f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/generate_binaries_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
pull_request:
branches:
- master
paths:
- '**.go'
- '**.sum'
- '**.mod'
- 'GNUmakefile'
workflow_dispatch:

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions scripts/terraform-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/tofu-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8aa45f8

Please sign in to comment.