Files
git-tag/README.MD
Максим Шеин a387a7f7eb Update README.MD
2025-04-21 10:49:38 +05:00

804 B

Examples:

on: [push]

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    name: A job to say hello
    steps:
      - 
        name: Checkout repo
        uses: actions/checkout@v4
      - 
        name: Get current env
        id: foo
        uses: actions/git-tag@main

      - 
        shell: bash
        run: |
          echo Git build type "$BUILD_TYPE"
          echo Git branch name "$BUILD_BRANCH_NAME"
          echo Git tag Description "$BUILD_TAG_DESC"
          echo Git short tag "$BUILD_GIT_SHA_SHORT"
        env:
          BUILD_TYPE: ${{ steps.foo.outputs.git_build_type }}
          BUILD_BRANCH_NAME: ${{ steps.foo.outputs.git_branch_name }}
          BUILD_TAG_DESC: ${{ steps.foo.outputs.git_tag_desc }}
          BUILD_TAG_SHORT: ${{ steps.foo.outputs.git_sha_short }}