fix: Use another way to extract just the version from the ref

This commit is contained in:
Rostislav Raykov 2019-09-18 01:48:58 +02:00
parent 2fc1e0a928
commit 37b5cf4414

View file

@ -28,7 +28,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.replace(/\/refs\/tags\//, '');
return context.payload.ref.split('/')[2];
- name: Archive
run: tar cfJ cloudflare-ddns-${{ steps.version.outputs.result }}.tar.xz target/cloudflare-ddns
- name: Create release