No description
Find a file
dependabot[bot] 82dc01ff9e
chore(deps): bump the actions-minor group with 2 updates (#64)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-15 18:27:37 +00:00
.cursor/rules refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
.github chore(deps): bump the actions-minor group with 2 updates (#64) 2025-12-15 18:27:37 +00:00
.licenses/npm refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
.vscode chore(vscode): configure prettier as default formatter for multiple file types (#28) 2025-10-29 10:26:12 +00:00
badges refactor(tags): simplify tag resolution and processing logic (#30) 2025-10-29 12:09:21 +00:00
bin refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
dist chore(deps-dev): bump the npm-development group across 1 directory with 5 updates (#47) 2025-11-11 18:37:15 +00:00
src feat(action): add skipped tags output and tracking (#33) 2025-10-29 13:06:38 +00:00
tests feat(action): add skipped tags output and tracking (#33) 2025-10-29 13:06:38 +00:00
.gitattributes refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
.gitignore test: move tests and fixtures to top-level "tests" directory (#29) 2025-10-29 11:09:22 +00:00
.licensed.yml refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
.node-version refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
.prettierignore docs(changelog): update changelog formatting and whitespace (#14) 2025-10-27 22:31:26 +00:00
.prettierrc.yml refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
action.yml feat(action): add skipped tags output and tracking (#33) 2025-10-29 13:06:38 +00:00
AGENTS.md test: move tests and fixtures to top-level "tests" directory (#29) 2025-10-29 11:09:22 +00:00
CHANGELOG.md chore(main): release 2.2.0 (#34) 2025-10-29 13:08:22 +00:00
CLAUDE.md refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
eslint.config.mjs refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
Gemfile refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
jest.config.js refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
LICENSE refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
mise.toml refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
package-lock.json chore(deps-dev): bump the npm-development group with 2 updates (#61) 2025-12-15 18:24:14 +00:00
package.json chore(deps-dev): bump the npm-development group with 2 updates (#61) 2025-12-15 18:24:14 +00:00
README.md chore(main): release 2.2.0 (#34) 2025-10-29 13:08:22 +00:00
rollup.config.ts chore(build): disable minifaction of dist/index.js to make rebuilt debugging easier (#45) 2025-11-11 18:23:24 +00:00
tsconfig.base.json refactor(action): rebuild in TypeScript based on typescript-action template repo (#9) 2025-10-27 21:31:03 +00:00
tsconfig.eslint.json test: move tests and fixtures to top-level "tests" directory (#29) 2025-10-29 11:09:22 +00:00
tsconfig.json test: move tests and fixtures to top-level "tests" directory (#29) 2025-10-29 11:09:22 +00:00

update-tags-action

Easily create/update one or more Git tags in a GitHub repository.

Latest Release GitHub Issues GitHub Pull Requests License

Generally useful for moving major (v1) and minor (v1.2) tags to same commit as the latest v1.x.x tag.

This action uses itself to move its own major and minor tags.

Examples

Basic

- uses: jimeh/update-tags-action@v2
  with:
    tags: v2,v2.2
- uses: jimeh/update-tags-action@v2
  with:
    tags: |
      v2
      v2.2

With Release Please

This example uses jimeh/release-please-manifest-action, but you can just as easily use the official google-github-actions/release-please-action instead.

First you'll want the workflow setup to run on push:

on: [push]

Then you'll want a release-please job which only runs on pushes to your main branch, and exposes relevant outputs from release please:

jobs:
  # [...]
  release-please:
    runs-on: ubuntu-latest
    if: ${{ github.ref == 'refs/heads/main' }}
    outputs:
      release_created: ${{ steps.release-please.outputs.release_created }}
      major: ${{ steps.release-please.outputs.major }}
      minor: ${{ steps.release-please.outputs.minor }}
    permissions:
      contents: write
      issues: write
      pull-requests: write
    steps:
      - uses: jimeh/release-please-manifest-action@v3
        id: release-please

And finally a job to create MAJOR and MINOR release tags, which only runs when release-please reports having created a release:

jobs:
  # [...]
  release-tags:
    runs-on: ubuntu-latest
    needs: release-please
    if: ${{ needs.release-please.outputs.release_created }}
    permissions:
      contents: write
    steps:
      - uses: jimeh/update-tags-action@v2
        with:
          tags: |
            v${{ needs.release-please.outputs.major }}
            v${{ needs.release-please.outputs.major }}.${{ needs.release-please.outputs.minor }}

Inputs

name description required default
tags

List/CSV of tags to create/update.

true ""
ref

The SHA or ref to tag. Defaults to SHA of current commit.

false ${{ github.sha }}
when_exists

What to do if the tag already exists. Must be one of 'update', 'skip', or 'fail'.

false update
annotation

Optional annotation message for tags. If provided, creates annotated tags. If empty, creates lightweight tags.

false ""
github_token

The GitHub token to use for authentication.

false ${{ github.token }}

Outputs

name description
tags

List of tags that were created/updated.

created

List of tags that were created.

updated

List of tags that were updated.

skipped

List of tags that were skipped.

Runs

This action is a node24 action.

License

MIT