Update golang.yml

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

View File

@ -10,24 +10,6 @@ on:
branches: [ "master" ] branches: [ "master" ]
jobs: jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
prefix: v
fallback: v1.0.0 # Optional fallback tag to use when no tag can be found
- name: 'Get next minor version'
id: semvers
uses: "WyriHaximus/github-action-next-semvers@v1"
with:
version: ${{ steps.previoustag.outputs.tag }}
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -47,6 +29,6 @@ jobs:
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
token: ${{ secrets.RELEASE_TOKEN }} token: ${{ secrets.RELEASE_TOKEN }}
tag_name: ${{ steps.semvers.outputs.patch }} tag_name: ${{ GITHUB.GITHUB_REF }}
files: | files: |
wazuh-notify-go/wazuh-notify wazuh-notify-go/wazuh-notify