Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Latest commit

 

History

History
16 lines (12 loc) · 655 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 655 Bytes

action-github-tagger

GitHub action for tagging a commit.

Note: this action is deprecated, because instead of using GitHub API to create tags (which is also possible inline with curl or https://github.com/actions/github-script), it can be re-implemented with two lines of code using git commands in the workflow itself:

- name: Tag
  if: github.event.deployment.environment == 'live'
  run: |
    git config user.name 'Sir Mergealot'
    git config user.email '[email protected]'

    git tag ${{ format('{0}/v{1}', github.event.deployment.environment, steps.heroku_deployment.outputs.release_version) }}
    git push --tags