Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 692 Bytes

File metadata and controls

33 lines (26 loc) · 692 Bytes

clone-tag

Create a Git tag based on another

Example usage

name: Generate Prefixed Tag

on:
  push:
    tags:
      - '*' # Triggers on all tags

jobs:
  create-mangled-tag:
    runs-on: ubuntu-latest
    permissions:
      contents: write # Required to create a new tag via API
      
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Create mapped tag
        id: map-tag
        uses: stackrox/clone-tag@v1 
        with:
          prefix: 'my/prefix'
          
      - name: Check result
        if: steps.map-tag.outputs.skipped == 'false'
        run: echo "Successfully generated tag ${{ steps.map-tag.outputs.new-tag }}"