1
Usage on Forgejo Actions
Stefano Pigozzi edited this page 2025-12-11 02:13:22 +01:00
To use this Action on Forgejo Actions, add the following as step in your job:
- name: "Parse semantic version"
id: semver
uses: https://forge.steffo.eu/steffo/actions-semver@COMMITHASHGOESHERE
with:
string: YOURINPUT
Replace COMMITHASHGOESHERE with the commit hash of the version of the Action you want to use, and YOURINPUT with the string you want to parse as semver.
For example:
- name: "Parse semantic version"
id: semver
uses: https://forge.steffo.eu/steffo/actions-semver@3e09a56a22b17aabe4040beb95bca6aeff7a7c3d
with:
string: ${{ forgejo.event.release.tag_name }}