Update greet-contributors.yml #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |