GitHub Action to calculate the age in years of a given date string for further use.
Required Date to calculate age in YYYY/MM/DD format.
The age in years.
- 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.
-
Fork it
-
Create your feature branch:
git checkout -b feature/my-new-feature
-
Commit your changes:
git commit -am 'Add some feature'
-
Push to the branch:
git push origin feature/my-new-feature
-
Submit a pull request