-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f499813
commit 0aa59c9
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: auto commit | ||
|
||
on: | ||
push: | ||
branches: master | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '6 * * * *' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.x' | ||
- name: Install Node-Fetch | ||
run: npm install | ||
- name: Update README.md | ||
run: node index.js > README.md | ||
- name: Commit change & Push | ||
run: | | ||
git config user.name 'Xnuvers007' | ||
git config user.email '${{ secrets.email }}' | ||
git remote set-url origin https://Xnuvers007:${{ secrets.token_gh }}@github.com/Xnuvers007/reforestation.git | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.token_gh }} | ||
- name: Auto GIT | ||
run: | | ||
git status | ||
git add . | ||
git commit -am "Jangan Lupa Follow https://www.instagram.com/Indradwi.25" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.token_gh }} |