diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 045685d..1fe143c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -55,21 +55,16 @@ jobs: app_version: "${{github.ref_name}}" chart_version: "${{github.ref_name}}" - - name: Extract tag name - id: tag - uses: actions/github-script@0.2.0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - return context.payload.ref.replace(/\/refs\/tags\//, ''); + - name: Extract version + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Push to ghcr.io uses: appany/helm-oci-chart-releaser@v0.3.0 with: name: sni-router repository: riotkit-org - tag: "${{ steps.tag.outputs.result }}" - path: helm/sni-router # Default charts/{name} + tag: "${{ env.RELEASE_VERSION }}" + path: helm/sni-router registry: ghcr.io registry_username: __token__ registry_password: ${{ secrets.GITHUB_TOKEN }}