Skip to content

:octocat: GitHub Action to calculate the age in years of a given date string

Notifications You must be signed in to change notification settings

frdmn/age-calculator-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

age-calculator-action

GitHub Action to calculate the age in years of a given date string for further use.

Inputs

date

Required Date to calculate age in YYYY/MM/DD format.

Outputs

age

The age in years.

Usage

- uses: frdmn/age-calculator-action@v1.1
  id: birthday
  with:
    date: '1991-08-17'

You can then make use of the ${{ steps.birthday.outputs.age }} variable (which would return 29 in the example above) in additional action steps.

Contributing

  1. Fork it

  2. Create your feature branch:

    git checkout -b feature/my-new-feature
  3. Commit your changes:

    git commit -am 'Add some feature'
  4. Push to the branch:

    git push origin feature/my-new-feature
  5. Submit a pull request

License

MIT