Skip to content

Push Any Git Tag

Actions
based on Actions Ecosystem Push Tag - Fixed with additional features
v1.0.0
Latest
Star (5)

Action Push Tag

actions-workflow-lint release license

This is a GitHub Action to push a Git tag.

It would be more useful to use this with other GitHub Actions' outputs.

Inputs

NAME DESCRIPTION TYPE REQUIRED DEFAULT
tag A Git tag name. string true N/A
message A message for the Git tag. string false ''
ref Commit SHA or tag to target. string false ''
force A message for the Git tag. boolean false false
always-pass If step should pass if tag push fails boolean false false

Example

name: Push a new tag with minor update

on:
  push:
    branches:
      - master

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: actions-ecosystem/action-get-latest-tag@v1
        id: get-latest-tag

      - uses: thejeff77/action-bump-semver@v1.0.0
        id: bump-semver
        with:
          current_version: ${{ steps.get-latest-tag.outputs.tag }}
          level: minor

      - uses: thejeff77/action-push-tag@v1.0.0
        with:
          tag: ${{ steps.bump-semver.outputs.new_version }}
          message: '${{ steps.bump-semver.outputs.new_version }}: PR #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}'

For a further practical example, see .github/workflows/release.yml.

License

Copyright 2020 The Actions Ecosystem Authors.

Action Push Tag is released under the Apache License 2.0.

Push Any Git Tag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

based on Actions Ecosystem Push Tag - Fixed with additional features
v1.0.0
Latest

Push Any Git Tag is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.