Skip to content

Initial commit

Initial commit #1

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'