Olá a todos e todas
Tenho um projeto e roda alguns scripts e, por fim, usa o {officer}
para preencher um template PowerPoint. Quero automatizar o projeto no GitHub Actions. Abaixo, segue o YAML que escrevi:
name: RBB Post Round
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
#on:
# schedule:
# - cron: "0 9 * * TUE"
on: push
jobs:
JobTeste1:
runs-on: windows-latest
steps:
- uses: r-lib/actions/setup-r@v2
- name: Query dependencies
run: |
install.packages('tidyverse')
install.packages('gt')
install.packages('officer')
shell: Rscript {0}
- name: Generate data
run: |
source("PosRodada/R/create_tables.R")
source("PosRodada/R/write_report.R")
source("PosRodada/R/_main_PosRodada.R")
print(file.exists("output/posrodada.pptx"))
shell: Rscript {0}
- name: Commit files
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add output/posrodada.pptx
git commit -m "add data"
git push
Na execução do workflow, a linha print(file.exists("output/posrodada.pptx"))
devolve TRUE. Mas na seção seguinte, não consigo adicionar o arquivo gerado ao commit:
The following paths are ignored by one of your .gitignore files:
output
hint: Use -f if you really want to add them.
hint: Turn this message off by running
hint: "git config advice.addIgnoredFile false"
On branch master
Your branch is up to date with 'origin/master'.
no changes added to commit (use "git add" and/or "git commit -a")
Everything up-to-date
Suponho que o erro esteja na instrução git add
mas não consigo encontrar como resolver.
Desde já, agradeço