Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Reforestation

Reforestation #10211

Workflow file for this run

name: Reforestation
on:
push:
branches:
- main
schedule:
- cron: "0 1/3 * * *"
jobs:
auto_commit:
runs-on: ubuntu-latest
steps:
- name: Set global directory
run: git config --global --add safe.directory /github/workspace
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 1
- name: Modify last update
run: |
cat > LAST_UPDATED
d=`date '+%Y-%m-%dT%H:%M:%SZ'`
echo $d > LAST_UPDATED
- name: Commit changes
run: |
git config --local user.email ${{ secrets.USER_EMAIL }}
git config --local user.name ${{ secrets.USER_NAME }}
git add -A
git commit -m "What are you looking for?"
- name: GitHub Push
uses: ad-m/[email protected]
with:
force: true
directory: "."
github_token: ${{ secrets.TOKEN }}