Skip to content

fix(workflows): use stable go for lint #8

fix(workflows): use stable go for lint

fix(workflows): use stable go for lint #8

Workflow file for this run

name: Set Version
on:
push:
branches: [main]
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
- name: version
id: version
uses: codacy/git-version@2.8.0
with:
release-branch: main
minor-identifier: "feat"
prefix: v
- name: tag
uses: actions/github-script@v7.0.1
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ steps.version.outputs.version }}",
sha: context.sha
})