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:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
return context.payload.ref.replace(/\/refs\/tags\//, '');
|
return context.payload.ref.split('/')[2];
|
||||||
- name: Archive
|
- name: Archive
|
||||||
run: tar cfJ cloudflare-ddns-${{ steps.version.outputs.result }}.tar.xz target/cloudflare-ddns
|
run: tar cfJ cloudflare-ddns-${{ steps.version.outputs.result }}.tar.xz target/cloudflare-ddns
|
||||||
- name: Create release
|
- name: Create release
|
||||||
|
|
Loading…
Reference in a new issue