mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-11-25 09:33:04 +07:00
617 B
617 B
Regex Strategy
The regex strategy uses the pattern identified at regex_pattern
on the file identified by root
to determine the version.
.gorc
version: 1.1.0
.github/workflows/example.yml
name: Release New Version
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: butlerlogic/action-autotag@master
with:
regex_pattern: "(version:)(\\s)?(?<version>\\d+\\.\\d+\\.\\d+(.+)?)\\n?"
root: ./.gorc
tag_prefix: "v"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"