Skip to content

Merge pull request #40 from 16AA-Milsim/moved-to-16AA-Common #17

Merge pull request #40 from 16AA-Milsim/moved-to-16AA-Common

Merge pull request #40 from 16AA-Milsim/moved-to-16AA-Common #17

name: Update Last Updated Date
on:
push:
branches:
- master
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Update Last Updated Date
run: sed -i "s/last updated .*/last updated $(date +'%Y_%m_%d')/" readme.md
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update last updated date" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}