8000 GitHub - Jacob-Morgan/action-push-tag: 🔖 GitHub Action to push a Git tag
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Jacob-Morgan/action-push-tag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ''

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: actions-ecosystem/action-bump-semver@v1
        id: bump-semver
        with:
          current_version: ${{ steps.get-latest-tag.outputs.tag }}
          level: minor

      - uses: actions-ecosystem/action-push-tag@v1
        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.

About

🔖 GitHub Action to push a Git tag

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 66.9%
  • Dockerfile 33.1%
0