Skip to content

Update greet-contributors.yml #222

Update greet-contributors.yml

Update greet-contributors.yml #222

Workflow file for this run

name: 📆 Update Date
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: write
jobs:
update-date:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Give Permissions
run: git update-index --chmod=+x ./.github/update-date.sh # if this line gives error, then run it locally
- name: Update README
run: .github/update-date.sh
shell: bash
- name: Push Changes
uses: ./.github/actions/push-changes
if: ${{ '<!-- `date "+%d/%m/%y"` -->' != '`tail -n 1 README.md`' }}
with:
message: 'feat: updated date in README.md'