From b19f3ca379e0f62a6a9bdf17e3e614cc65af0973 Mon Sep 17 00:00:00 2001 From: Ophelie Le Mentec <17216799+ouphi@users.noreply.github.com> Date: Mon, 31 Oct 2022 17:48:23 +0100 Subject: [PATCH] Match one or more. --- .github/workflows/create_prerelease.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create_prerelease.yaml b/.github/workflows/create_prerelease.yaml index 263dbda09a..3f61b15411 100644 --- a/.github/workflows/create_prerelease.yaml +++ b/.github/workflows/create_prerelease.yaml @@ -50,7 +50,7 @@ jobs: with: ref: docs/main - name: Update doc URL with new version - run: sed -i "s/iotedge-lorawan-starterkit%2Fv[0-9\.]*/iotedge-lorawan-starterkit%2Fv${VERSION}/g" docs/quickstart.md + run: sed -r -i "s/iotedge-lorawan-starterkit%2Fv[0-9\.]+/iotedge-lorawan-starterkit%2Fv${VERSION}/g" docs/quickstart.md - name: Set up git user using the built-in token run: | git config user.name github-actions @@ -79,7 +79,7 @@ jobs: with: ref: dev - name: Update the default LoRaWAN Starter Kit version to use in Bicep. - run: sed -i "s/param version string = '[0-9/.]*'/param version string = '${VERSION}'/g" TemplateBicep/main.bicep + run: sed -r -i "s/param version string = '[0-9/.]+'/param version string = '${VERSION}'/g" TemplateBicep/main.bicep - name: Set up git user using the built-in token run: | git config user.name github-actions @@ -126,7 +126,7 @@ jobs: # Define DISCOVERY_SERVICE_ZIP env var for next steps. echo "DISCOVERY_SERVICE_ZIP=$DISCOVERY_SERVICE_ZIP" >> $GITHUB_ENV - name: Update the default LoRaWAN Starter Kit version to use in Bicep. - run: sed -i "s/param version string = '[0-9/.]*'/param version string = '${VERSION}'/g" TemplateBicep/main.bicep + run: sed -r -i "s/param version string = '[0-9/.]+'/param version string = '${VERSION}'/g" TemplateBicep/main.bicep - name: Generate ARM file working-directory: TemplateBicep run: az bicep build --file main.bicep --outfile $ARM_FILE