Porfolio Refresh Projects DATA JSON #372
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: Porfolio Refresh Projects DATA JSON | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 */1 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repositorio | |
uses: actions/checkout@v2 | |
- name: Fazendo setup no Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20 | |
- name: Instalando as dependencias | |
run: | |
npm ci | |
- name: Rodando o codigo | |
run: | |
node src/main/fetchRepositories.cjs | |
env: | |
GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}} | |
GITHUB_USERNAME: ${{secrets.USERNAME_GITHUB}} | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Fazendo auto-commit dos novos repositorios |