1
0
mirror of https://github.com/zu1k/nali.git synced 2025-01-22 21:29:02 +08:00

fix: calc version out of docker

Signed-off-by: zu1k <i@zu1k.com>
This commit is contained in:
zu1k 2022-06-30 18:04:38 +08:00
parent 58acea1c2c
commit 632efe8029
2 changed files with 8 additions and 4 deletions

View File

@ -58,8 +58,9 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: git config trust dir
run: git config --global --add safe.directory /github/workspace
- name: Get version
id: version
run: echo ::set-output name=version::${GITHUB_REF##*/v}
- name: Publish AUR package nali-go
uses: zu1k/aur-publish-action@master
@ -68,3 +69,4 @@ jobs:
commit_username: 'zu1k'
commit_email: 'i@zu1k.com'
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
new_release: ${{ steps.version.outputs.version }}

View File

@ -33,8 +33,9 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: git config trust dir
run: git config --global --add safe.directory /github/workspace
- name: Get version
id: version
run: echo ::set-output name=version::$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
- name: Publish AUR package nali-go-git
uses: zu1k/aur-publish-action@master
@ -43,3 +44,4 @@ jobs:
commit_username: 'zu1k'
commit_email: 'i@zu1k.com'
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
new_release: ${{ steps.version.outputs.version }}