fix: Use another way to extract just the version from the ref
This commit is contained in:
parent
2fc1e0a928
commit
37b5cf4414
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue