Update golang.yml

This commit is contained in:
DariusKlein 2024-06-10 15:47:19 +02:00 committed by GitHub
parent b5982d348d
commit 83321c5910
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,11 +24,16 @@ jobs:
run: | run: |
cd wazuh-notify-go cd wazuh-notify-go
go build -v . go build -v .
- name: Put current date into a variable
run: |
$NOW=& Get-Date -format yyyy-MM-dd
echo "NOW=$NOW" >> $env:GITHUB_ENV
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
token: ${{ secrets.RELEASE_TOKEN }} token: ${{ secrets.RELEASE_TOKEN }}
tag_name: ${{ GITHUB.GITHUB_REF }} tag_name: Golang ${{env.NOW}}
files: | files: |
wazuh-notify-go/wazuh-notify wazuh-notify-go/wazuh-notify