mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 13:19:02 +08:00
fix: calc version out of docker
Signed-off-by: zu1k <i@zu1k.com>
This commit is contained in:
parent
58acea1c2c
commit
632efe8029
6
.github/workflows/go-release.yml
vendored
6
.github/workflows/go-release.yml
vendored
@ -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 }}
|
||||
|
6
.github/workflows/go.yml
vendored
6
.github/workflows/go.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user