/tag-or-commit-action

Action to outputs tag or commit

MIT LicenseMIT

Tag or Commit Action

Action to outputs tag or commit.

With this you can use same variable to deploy on PRs, branches and tags.

Usage

on: [push]

jobs:
  ecr:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - uses: olxbr/tag-or-commit-action@v0
        id: release

      - run: echo ${{ steps.release.outputs.version }}