jnk0le / XTightlyCoupledIO

custom riscv extension to provide directly accessed peripheral registers
Creative Commons Attribution 4.0 International
5 stars 2 forks source link

tag name conflicts with branch name #3

Closed jnk0le closed 1 year ago

jnk0le commented 1 year ago

for automatically published releases, tag name must be ${{ github.ref_name }} which resolves to "master", which prevents pushing with weird errors when tag exists:

obraz

changing the tag name to anything different causes:

Run actions/create-release@v1
  with:
    tag_name: build master
    release_name: Release build master
    draft: false
    prerelease: true
  env:
    APT_PACKAGES_FILE: /home/runner/work/XTightlyCoupledIO/XTightlyCoupledIO/dependencies/apt_packages.txt
    BUNDLE_GEMFILE: /home/runner/work/XTightlyCoupledIO/XTightlyCoupledIO/dependencies/Gemfile
    BUNDLE_BIN: /home/runner/work/XTightlyCoupledIO/XTightlyCoupledIO/bin
    NPM_PACKAGE_FOLDER: /home/runner/work/XTightlyCoupledIO/XTightlyCoupledIO/dependencies
    PDF_RESULT: example.pdf
    GITHUB_TOKEN: ***
Error: Validation Failed: {"resource":"Release","code":"custom","field":"tag_name","message":"tag_name is not a valid tag"}, {"resource":"Release","code":"custom","field":"tag_name","message":"tag_name is not well-formed"}, {"resource":"Release","code":"custom","message":"Published releases must have a valid tag"}