for automatically published releases, tag name must be ${{ github.ref_name }} which resolves to "master", which prevents pushing with weird errors when tag exists:
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"}
for automatically published releases, tag name must be
${{ github.ref_name }}
which resolves to "master", which prevents pushing with weird errors when tag exists:changing the tag name to anything different causes: