test actions #9
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 README on Commit | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Node.js Script | |
run: node update.mjs | |
- name: Commit and Push Changes | |
env: | |
USER_EMAIL: ${{ secrets.USER_EMAIL }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
git config user.email "${{ secrets.USER_EMAIL }}" | |
git config user.name "a6b8" | |
git add . | |
git commit -m "Update README" | |
git remote add origin https://github.com/easyMina/.github.git | |
git push origin main |