All Projects → anothrNick → Github Tag Action

anothrNick / Github Tag Action

Licence: mit
A Github Action to tag a repo on merge.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Github Tag Action

Auth.js
GitHub API authentication library for JavaScript and Node.js
Stars: ✭ 267 (-1.11%)
Mutual labels:  hacktoberfest
Djangocms Blog
django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
Stars: ✭ 268 (-0.74%)
Mutual labels:  hacktoberfest
Devdocs Desktop
🗂 A full-featured desktop app for DevDocs.io.
Stars: ✭ 3,040 (+1025.93%)
Mutual labels:  hacktoberfest
Alphavantage
A simple interface to the Alpha Vantage API.
Stars: ✭ 266 (-1.48%)
Mutual labels:  hacktoberfest
Vscode Home Assistant
Visual Studio Code Extension for Home Assistant. ⭐ if you think this is cool!
Stars: ✭ 267 (-1.11%)
Mutual labels:  hacktoberfest
Aws
AWS SDK with readable code and async responses
Stars: ✭ 268 (-0.74%)
Mutual labels:  hacktoberfest
Cpp
Repository for C++/C codes and algos.
Stars: ✭ 265 (-1.85%)
Mutual labels:  hacktoberfest
Github Stats
📈 Visualize stats about GitHub users and projects in your terminal.
Stars: ✭ 271 (+0.37%)
Mutual labels:  hacktoberfest
Graphql.js
GitHub GraphQL API client for browsers and Node
Stars: ✭ 268 (-0.74%)
Mutual labels:  hacktoberfest
Redaxo
REDAXO, a PHP-based CMS since 2004. Both simple and flexible.
Stars: ✭ 268 (-0.74%)
Mutual labels:  hacktoberfest
Node Red Docker
Repository for all things Node-RED and Docker related
Stars: ✭ 267 (-1.11%)
Mutual labels:  hacktoberfest
First Born
Component library for React Native
Stars: ✭ 267 (-1.11%)
Mutual labels:  hacktoberfest
Php Openapi
Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
Stars: ✭ 268 (-0.74%)
Mutual labels:  hacktoberfest
Free Pmo
Project management software for freelancers or agencies, built with Laravel 5.
Stars: ✭ 264 (-2.22%)
Mutual labels:  hacktoberfest
Eloquent Power Joins
The Laravel magic you know, now applied to joins.
Stars: ✭ 264 (-2.22%)
Mutual labels:  hacktoberfest
Toha
A Hugo theme for personal portfolio
Stars: ✭ 267 (-1.11%)
Mutual labels:  hacktoberfest
Loopback Datasource Juggler
Connect Loopback to various Data Sources
Stars: ✭ 268 (-0.74%)
Mutual labels:  hacktoberfest
Openms
The codebase of the OpenMS project
Stars: ✭ 270 (+0%)
Mutual labels:  hacktoberfest
Documentation
📘 Nextcloud documentation
Stars: ✭ 268 (-0.74%)
Mutual labels:  hacktoberfest
Programming
Code a program in a language of your choice.
Stars: ✭ 269 (-0.37%)
Mutual labels:  hacktoberfest

github-tag-action

A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version.

Build Status Stable Version Latest Release

Medium Post: Creating A Github Action to Tag Commits

Usage

name: Bump version
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/[email protected]
      with:
        fetch-depth: '0'
    - name: Bump version and push tag
      uses: anothrNick/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        WITH_V: true

NOTE: set the fetch-depth for actions/[email protected] to be sure you retrieve all commits to look for the semver commit message.

Options

Environment Variables

  • GITHUB_TOKEN (required) - Required for permission to tag the repo.
  • DEFAULT_BUMP (optional) - Which type of bump to use when none explicitly provided (default: minor).
  • WITH_V (optional) - Tag version with v character.
  • RELEASE_BRANCHES (optional) - Comma separated list of branches (bash reg exp accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any tag. Examples: master or .* or release.*,hotfix.*,master ...
  • CUSTOM_TAG (optional) - Set a custom tag, useful when generating tag based on f.ex FROM image in a docker image. Setting this tag will invalidate any other settings set!
  • SOURCE (optional) - Operate on a relative path under $GITHUB_WORKSPACE.
  • DRY_RUN (optional) - Determine the next version without tagging the branch. The workflow can use the outputs new_tag and tag in subsequent steps. Possible values are true and false (default).
  • INITIAL_VERSION (optional) - Set initial version before bump. Default 0.0.0.
  • TAG_CONTEXT (optional) - Set the context of the previous tag. Possible values are repo (default) or branch.
  • PRERELEASE_SUFFIX (optional) - Suffix for your prerelease versions, beta by default. Note this will only be used if a prerelease branch.
  • VERBOSE (optional) - Print git logs. For some projects these logs may be very large. Possible values are true (default) and false.

Outputs

  • new_tag - The value of the newly created tag.
  • tag - The value of the latest tag after running this action.
  • part - The part of version which was bumped.

Note: This action creates a lightweight tag.

Bumping

Manual Bumping: Any commit message that includes #major, #minor, #patch, or #none will trigger the respective version bump. If two or more are present, the highest-ranking one will take precedence. If #none is contained in the commit message, it will skip bumping regardless DEFAUT_BUMP.

Automatic Bumping: If no #major, #minor or #patch tag is contained in the commit messages, it will bump whichever DEFAULT_BUMP is set to (which is minor by default). Disable this by setting DEFAULT_BUMP to none.

Note: This action will not bump the tag if the HEAD commit has already been tagged.

Workflow

  • Add this action to your repo
  • Commit some changes
  • Either push to master or open a PR
  • On push (or merge), the action will:
    • Get latest tag
    • Bump tag with minor version unless any commit message contains #major or #patch
    • Pushes tag to github
    • If triggered on your repo's default branch (master or main if unchanged), the bump version will be a release tag.
    • If triggered on any other branch, a prerelease will be generated, depending on the bump, starting with *-<PRERELEASE_SUFFIX>.1, *-<PRERELEASE_SUFFIX>.2, ...

Credits

fsaintjacques/semver-tool

Projects using github-tag-action

A list of projects using github-tag-action for reference.

  • another/github-tag-action (uses itself to create tags)

  • anothrNick/json-tree-service

    Access JSON structure with HTTP path parameters as keys/indices to the JSON.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].