tzvc / dart-auto-tag

Automate dart version tagging.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dart-version-auto-tag

This action automatically creates tags in your repository when you update your pubspec.yaml version. Use it to trigger builds automatically.

Usage

Setup a workflow that triggers on commit to your release branch to run this action.

A custom GitHub access token with repo permissions needs to be created as the provided GITHUB_TOKEN, when used, cannot trigger other workflows. See here for more info on what this means.

To create an access token, see here. Save this token as a secret on your repo and provide it to the action like below.

name: Version tag
on:
  push:
    branches:
      - master
jobs:
  tag:
    runs-on: ubuntu-latest
    steps:
      - uses: theochampion/dart-auto-tag@v1.0.1
        with:
          token: ${{ secrets.TAG_TOKEN }}

Create another workflow that is triggered when a tag is created.

name: Build release
on:
  push:
    tags:
    - 'v*'
jobs:
  build:
    steps:
    ...

Now whenever you update your pubspec version field, a version tag is automatically created.

Inputs

Input Description
path The path to the pubspec file to track (default: pubspec.yaml).
token The GitHub access token to create tags in the repository.

About

Automate dart version tagging.

License:MIT License


Languages

Language:JavaScript 69.8%Language:TypeScript 30.2%