Skip to content

GitHub Action to re-tag using v0.1 / v2 style to simulate semver carets (^)

License

Notifications You must be signed in to change notification settings

silverstripe/gha-auto-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions - Auto-tag

Delete and re-release tags so that other modules can use something similar to carets (^)

Caret (^) requirements are not supported by github-action e.g. @^2 does not work

The action will tag v2 when 2.5.0 is released and v0.3 when 0.3.5 is released

The new 'v' tag will point to the same sha e.g. the sha of v2 will equal the sha of 2.5.0

This allows modules to include workflows using the @v2 or @v0.3 syntax

Using the 'v' prefix to avoid confusion with the '2' branch naming convention that Silverstripe uses

Usage

This action has no configuration or inputs - just add the following workflow verbatim.

.github/workflows/auto-tag.yml

name: Auto-tag

on:
  push:
    tags:
      - '*.*.*'
  workflow_dispatch:

permissions: {}

jobs:
  auto-tag:
    name: Auto-tag
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: Auto-tag
        uses: silverstripe/gha-auto-tag@v1

About

GitHub Action to re-tag using v0.1 / v2 style to simulate semver carets (^)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •