feat(): test node with git #13
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: Example Push Action | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.9.0 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git fetch | |
git checkout ci | |
date > generated.txt | |
node node.js | |
git add . | |
git commit -m "generated" | |
git push |